public virtual void ShouldDecodeFalse()
        {
            var boolType = new BoolType();
            var result   = boolType.Decode <bool>("0000000000000000000000000000000000000000000000000000000000000000");

            Assert.Equal(false, result);
        }
        public virtual void ShouldDecodeTrue()
        {
            var boolType = new BoolType();
            var result   = boolType.Decode <bool>("0000000000000000000000000000000000000000000000000000000000000001");

            Assert.Equal(true, result);
        }
示例#3
0
 public virtual void ShouldDecodeTrue()
 {
     var boolType = new BoolType();
     var result = boolType.Decode<bool>("0000000000000000000000000000000000000000000000000000000000000001");
     Assert.Equal(true, result);
 }
示例#4
0
 public virtual void ShouldDecodeFalse()
 {
     var boolType = new BoolType();
     var result = boolType.Decode<bool>("0000000000000000000000000000000000000000000000000000000000000000");
     Assert.Equal(false, result);
 }