示例#1
0
        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);
        }
示例#2
0
        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);
        }