Browse Source

Add tests

pull/301/head
Halil İbrahim Kalkan 8 years ago
parent
commit
df26759e74
  1. 4
      test/Volo.Abp.Core.Tests/System/ObjectExtension_Test.cs

4
test/Volo.Abp.Core.Tests/System/ObjectExtension_Test.cs

@ -30,7 +30,9 @@ namespace System
"false".To<bool>().ShouldBeOfType<bool>().ShouldBe(false);
"True".To<bool>().ShouldBeOfType<bool>().ShouldBe(true);
"False".To<bool>().ShouldBeOfType<bool>().ShouldBe(false);
"TrUE".To<bool>().ShouldBeOfType<bool>().ShouldBe(true);
Assert.Throws<FormatException>(() => "test".To<bool>());
Assert.Throws<FormatException>(() => "test".To<int>());
}

Loading…
Cancel
Save