public void IsInstanceOfType_StringLiteral_False() { // arrange var type = new FloatType(); // act var result = type.IsInstanceOfType(new StringValueNode("123")); // assert Assert.False(result); }
public void IsInstanceOfType_NullLiteral_True() { // arrange var type = new FloatType(); // act var result = type.IsInstanceOfType(NullValueNode.Default); // assert Assert.True(result); }
public void IsInstanceOfType_IntLiteral_True() { // arrange var type = new FloatType(); // act var result = type.IsInstanceOfType(new IntValueNode(123)); // assert Assert.True(result); }
public void IsInstanceOfType_FloatLiteral_True() { // arrange var type = new FloatType(); // act var result = type.IsInstanceOfType(CreateExponentialLiteral()); // assert Assert.True(result); }