@@ -24,32 +24,6 @@ namespace MongoDB.Driver.Tests.GridFS
24
24
{
25
25
public class GridFSUploadOptionsTests
26
26
{
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
-
53
27
[ Fact ]
54
28
public void BatchSize_get_should_return_expected_result ( )
55
29
{
@@ -116,52 +90,14 @@ public void ChunkSizeBytes_set_should_throw_when_value_is_invalid(
116
90
action . ShouldThrow < ArgumentException > ( ) . And . ParamName . Should ( ) . Be ( "value" ) ;
117
91
}
118
92
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
-
155
93
[ Fact ]
156
94
public void default_constructor_should_return_expected_result ( )
157
95
{
158
96
var result = new GridFSUploadOptions ( ) ;
159
97
160
98
#pragma warning disable 618
161
- result . Aliases . Should ( ) . BeNull ( ) ;
162
99
result . BatchSize . Should ( ) . NotHaveValue ( ) ;
163
100
result . ChunkSizeBytes . Should ( ) . NotHaveValue ( ) ;
164
- result . ContentType . Should ( ) . BeNull ( ) ;
165
101
result . Metadata . Should ( ) . BeNull ( ) ;
166
102
#pragma warning restore
167
103
}
0 commit comments