File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ using NUnit . Framework ;
2
+
3
+ namespace Mainwave . MimeTypes . Tests
4
+ {
5
+ [ TestFixture ]
6
+ public class FontTests
7
+ {
8
+ [ TestCase ( MimeType . Font . Collection , "font/collection" ) ]
9
+ [ TestCase ( MimeType . Font . Otf , "font/otf" ) ]
10
+ [ TestCase ( MimeType . Font . Sfnt , "font/sfnt" ) ]
11
+ [ TestCase ( MimeType . Font . Ttf , "font/ttf" ) ]
12
+ [ TestCase ( MimeType . Font . Woff , "font/woff" ) ]
13
+ [ TestCase ( MimeType . Font . Woff2 , "font/woff2" ) ]
14
+ public void AssertFontMimeTypeValue ( string valueUnderTest , string expectedValue )
15
+ {
16
+ Assert . That ( valueUnderTest , Is . EqualTo ( expectedValue ) ) ;
17
+ }
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ namespace Mainwave . MimeTypes
2
+ {
3
+ public static partial class MimeType
4
+ {
5
+ /// <summary>
6
+ /// MIME type constants for font types
7
+ /// </summary>
8
+ public static class Font
9
+ {
10
+ private const string Prefix = "font/" ;
11
+
12
+ /// <summary>
13
+ /// font/collection
14
+ /// </summary>
15
+ public const string Collection = Prefix + "collection" ;
16
+
17
+ /// <summary>
18
+ /// font/otf
19
+ /// </summary>
20
+ public const string Otf = Prefix + "otf" ;
21
+
22
+ /// <summary>
23
+ /// font/sfnt
24
+ /// </summary>
25
+ public const string Sfnt = Prefix + "sfnt" ;
26
+
27
+ /// <summary>
28
+ /// font/ttf
29
+ /// </summary>
30
+ public const string Ttf = Prefix + "ttf" ;
31
+
32
+ /// <summary>
33
+ /// font/woff
34
+ /// </summary>
35
+ public const string Woff = Prefix + "woff" ;
36
+
37
+ /// <summary>
38
+ /// font/woff2
39
+ /// </summary>
40
+ public const string Woff2 = Prefix + "woff2" ;
41
+ }
42
+ }
43
+ }
You can’t perform that action at this time.
0 commit comments