Example #1
0
        public void SyntaxTypeReference_ToString()
        {
            // arrange
            SyntaxTypeReference typeReference = TypeReference.Create(
                "Foo",
                TypeContext.Input);

            // act
            var result = typeReference.ToString();

            // assert
            Assert.Equal("Input: Foo", result);
        }
Example #2
0
        public void ClrTypeReference_ToString()
        {
            // arrange
            var typeReference = new SyntaxTypeReference(
                new NonNullTypeNode(new NamedTypeNode("abc")),
                TypeContext.Input,
                true,
                false);

            // act
            string result = typeReference.ToString();

            // assert
            Assert.Equal("Input: abc!", result);
        }