예제 #1
0
        public void UInt256FromIntegerString(string integerString, string expectedResult)
        {
            var num       = UInt256.FromString(integerString);
            var numString = num.ToString();

            Assert.Equal(expectedResult, numString);

            // test loose casting
            var num2       = (UInt256)integerString;
            var numString2 = num2.ToString();

            Assert.Equal(expectedResult, numString2);
        }
예제 #2
0
 public void UInt256FromIntegerStringInvalid(string integerString)
 {
     Assert.Throws <ArgumentException>(() => UInt256.FromString(integerString));
 }