コード例 #1
0
 public void Should_throw_ArgumentNullException_when_converting_megabytes_to_bytes_and_argument_is_lesser_than_zero()
 {
     Assert.Throws <ArgumentException>(() => BytesService.ConvertMegabytesToBytes(-1));
 }
コード例 #2
0
 public override long GetValue()
 {
     return(BytesService.ConvertMegabytesToBytes((long)_value));
 }
コード例 #3
0
 public void Should_convert_megabytes_to_bytes_correctly()
 {
     Assert.Equal(10485760, BytesService.ConvertMegabytesToBytes(10L));
 }