public void IsInstanceOfType_Null_Throws() { // arrange var type = new IdType(); // act // assert Assert.Throws <ArgumentNullException>( () => type.IsInstanceOfType(null)); }
public void IsInstanceOfType_Wrong_ValueNode() { // arrange var type = new IdType(); var input = new FloatValueNode("123456"); // act bool result = type.IsInstanceOfType(input); // assert Assert.False(result); }
public void IsInstanceOfType_NullValueNode() { // arrange var type = new IdType(); NullValueNode input = NullValueNode.Default; // act bool result = type.IsInstanceOfType(input); // assert Assert.True(result); }
public void IsInstanceOfType_IntValueNode() { // arrange var type = new IdType(); var input = new IntValueNode("123456"); // act bool result = type.IsInstanceOfType(input); // assert Assert.True(result); }