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); }
public virtual void ShouldDecodeTrue() { var boolType = new BoolType(); var result = boolType.Decode<bool>("0000000000000000000000000000000000000000000000000000000000000001"); Assert.Equal(true, result); }
public virtual void ShouldDecodeFalse() { var boolType = new BoolType(); var result = boolType.Decode<bool>("0000000000000000000000000000000000000000000000000000000000000000"); Assert.Equal(false, result); }