protected void ExpectIsInstanceOfTypeToMatch <TType>( object?runtimeValue, bool expectedResult) where TType : ScalarType { // arrange ScalarType scalar = CreateType <TType>(); // act var result = scalar.IsInstanceOfType(runtimeValue); // assert Assert.Equal(expectedResult, result); }
protected void ExpectIsInstanceOfTypeToMatch <TType>( IValueNode valueSyntax, bool expectedResult) where TType : ScalarType { // arrange ScalarType scalar = CreateType <TType>(); // act var result = scalar.IsInstanceOfType(valueSyntax); // assert Assert.Equal(expectedResult, result); }