コード例 #1
0
 public void Should_NOT_throw_exception_when_initialized_with_list()
 {
     Assert.DoesNotThrow(() => NotNullableArray.Init(1));
     Assert.AreEqual(new[] { 123 }, NotNullableArray.Init(new[] { 123 }));
 }
コード例 #2
0
 public void Should_throw_exception_when_initialized_with_null()
 {
     Assert.Throws <ArgumentNullException>(() => NotNullableArray.Init(null));
 }