@@ -24,32 +24,6 @@ namespace MongoDB.Driver.Tests.GridFS
2424{
2525 public class GridFSUploadOptionsTests
2626 {
27- [ Fact ]
28- public void Aliases_get_should_return_expected_result ( )
29- {
30- #pragma warning disable 618
31- var value = new [ ] { "alias" } ;
32- var subject = new GridFSUploadOptions { Aliases = value } ;
33-
34- var result = subject . Aliases ;
35- #pragma warning restore
36-
37- result . Should ( ) . BeSameAs ( value ) ;
38- }
39-
40- [ Fact ]
41- public void Aliases_set_should_have_expected_result ( )
42- {
43- var subject = new GridFSUploadOptions ( ) ;
44- var value = new [ ] { "alias" } ;
45-
46- #pragma warning disable 618
47- subject . Aliases = value ;
48-
49- subject . Aliases . Should ( ) . BeSameAs ( value ) ;
50- #pragma warning restore
51- }
52-
5327 [ Fact ]
5428 public void BatchSize_get_should_return_expected_result ( )
5529 {
@@ -116,52 +90,14 @@ public void ChunkSizeBytes_set_should_throw_when_value_is_invalid(
11690 action . ShouldThrow < ArgumentException > ( ) . And . ParamName . Should ( ) . Be ( "value" ) ;
11791 }
11892
119- [ Fact ]
120- public void ContentType_get_should_return_expected_result ( )
121- {
122- #pragma warning disable 618
123- var subject = new GridFSUploadOptions { ContentType = "type" } ;
124-
125- var result = subject . ContentType ;
126-
127- result . Should ( ) . Be ( "type" ) ;
128- #pragma warning restore
129- }
130-
131- [ Fact ]
132- public void ContentType_set_should_have_expected_result ( )
133- {
134- #pragma warning disable 618
135- var subject = new GridFSUploadOptions ( ) ;
136-
137- subject . ContentType = "type" ;
138-
139- subject . ContentType . Should ( ) . Be ( "type" ) ;
140- #pragma warning restore
141- }
142-
143- [ Fact ]
144- public void ContentType_set_should_throw_when_value_is_invalid ( )
145- {
146- #pragma warning disable 618
147- var subject = new GridFSUploadOptions ( ) ;
148-
149- Action action = ( ) => subject . ContentType = "" ;
150-
151- action . ShouldThrow < ArgumentException > ( ) . And . ParamName . Should ( ) . Be ( "value" ) ;
152- #pragma warning restore
153- }
154-
15593 [ Fact ]
15694 public void default_constructor_should_return_expected_result ( )
15795 {
15896 var result = new GridFSUploadOptions ( ) ;
15997
16098#pragma warning disable 618
161- result . Aliases . Should ( ) . BeNull ( ) ;
16299 result . BatchSize . Should ( ) . NotHaveValue ( ) ;
163100 result . ChunkSizeBytes . Should ( ) . NotHaveValue ( ) ;
164- result . ContentType . Should ( ) . BeNull ( ) ;
165101 result . Metadata . Should ( ) . BeNull ( ) ;
166102#pragma warning restore
167103 }
0 commit comments