@@ -23,26 +23,26 @@ namespace CycloneDX.Core.Tests
23
23
public class MediaTypeTests
24
24
{
25
25
[ Theory ]
26
- [ InlineData ( Format . Xml , SpecificationVersion . v1_4 , "application/vnd.cyclonedx+xml; version=1.4" ) ]
27
- [ InlineData ( Format . Xml , SpecificationVersion . v1_3 , "application/vnd.cyclonedx+xml; version=1.3" ) ]
28
- [ InlineData ( Format . Xml , SpecificationVersion . v1_2 , "application/vnd.cyclonedx+xml; version=1.2" ) ]
29
- [ InlineData ( Format . Xml , SpecificationVersion . v1_1 , "application/vnd.cyclonedx+xml; version=1.1" ) ]
30
- [ InlineData ( Format . Xml , SpecificationVersion . v1_0 , "application/vnd.cyclonedx+xml; version=1.0" ) ]
31
- [ InlineData ( Format . Json , SpecificationVersion . v1_4 , "application/vnd.cyclonedx+json; version=1.4" ) ]
32
- [ InlineData ( Format . Json , SpecificationVersion . v1_3 , "application/vnd.cyclonedx+json; version=1.3" ) ]
33
- [ InlineData ( Format . Json , SpecificationVersion . v1_2 , "application/vnd.cyclonedx+json; version=1.2" ) ]
34
- [ InlineData ( Format . Protobuf , SpecificationVersion . v1_4 , "application/x.vnd.cyclonedx+protobuf; version=1.4" ) ]
35
- [ InlineData ( Format . Protobuf , SpecificationVersion . v1_3 , "application/x.vnd.cyclonedx+protobuf; version=1.3" ) ]
36
- public void MediaTypeAndVersionIsCorrect ( Format format , SpecificationVersion schemaVersion , string expected )
26
+ [ InlineData ( SerializationFormat . Xml , SpecificationVersion . v1_4 , "application/vnd.cyclonedx+xml; version=1.4" ) ]
27
+ [ InlineData ( SerializationFormat . Xml , SpecificationVersion . v1_3 , "application/vnd.cyclonedx+xml; version=1.3" ) ]
28
+ [ InlineData ( SerializationFormat . Xml , SpecificationVersion . v1_2 , "application/vnd.cyclonedx+xml; version=1.2" ) ]
29
+ [ InlineData ( SerializationFormat . Xml , SpecificationVersion . v1_1 , "application/vnd.cyclonedx+xml; version=1.1" ) ]
30
+ [ InlineData ( SerializationFormat . Xml , SpecificationVersion . v1_0 , "application/vnd.cyclonedx+xml; version=1.0" ) ]
31
+ [ InlineData ( SerializationFormat . Json , SpecificationVersion . v1_4 , "application/vnd.cyclonedx+json; version=1.4" ) ]
32
+ [ InlineData ( SerializationFormat . Json , SpecificationVersion . v1_3 , "application/vnd.cyclonedx+json; version=1.3" ) ]
33
+ [ InlineData ( SerializationFormat . Json , SpecificationVersion . v1_2 , "application/vnd.cyclonedx+json; version=1.2" ) ]
34
+ [ InlineData ( SerializationFormat . Protobuf , SpecificationVersion . v1_4 , "application/x.vnd.cyclonedx+protobuf; version=1.4" ) ]
35
+ [ InlineData ( SerializationFormat . Protobuf , SpecificationVersion . v1_3 , "application/x.vnd.cyclonedx+protobuf; version=1.3" ) ]
36
+ public void MediaTypeAndVersionIsCorrect ( SerializationFormat format , SpecificationVersion schemaVersion , string expected )
37
37
{
38
38
Assert . Equal ( expected , MediaTypes . GetMediaType ( format , schemaVersion ) ) ;
39
39
}
40
40
41
41
[ Theory ]
42
- [ InlineData ( Format . Xml , "application/vnd.cyclonedx+xml" ) ]
43
- [ InlineData ( Format . Json , "application/vnd.cyclonedx+json" ) ]
44
- [ InlineData ( Format . Protobuf , "application/x.vnd.cyclonedx+protobuf" ) ]
45
- public void MediaTypeIsCorrect ( Format format , string expected )
42
+ [ InlineData ( SerializationFormat . Xml , "application/vnd.cyclonedx+xml" ) ]
43
+ [ InlineData ( SerializationFormat . Json , "application/vnd.cyclonedx+json" ) ]
44
+ [ InlineData ( SerializationFormat . Protobuf , "application/x.vnd.cyclonedx+protobuf" ) ]
45
+ public void MediaTypeIsCorrect ( SerializationFormat format , string expected )
46
46
{
47
47
Assert . Equal ( expected , MediaTypes . GetMediaType ( format ) ) ;
48
48
}
0 commit comments