Beispiel #1
0
        public void GivenNameTypeAndAccessModifierProducesCorrectOutput()
        {
            var rawSelection = "private double TestNameProperty";
            var property     = DependencyPropertySignature.FromRawSelectionWithGivenClassName(rawSelection, nameof(DependencyPropertySignatureTests));

            var expected = GenerateExpectedResult("private", "double", "TestName", "TestNameProperty", nameof(DependencyPropertySignatureTests));
            var result   = property.ToString();

            Assert.Equal(expected, result);
        }
Beispiel #2
0
        public void GivenNameAndTypeProducesCorrectOutput()
        {
            var rawSelection = "int TestNameProperty";
            var property     = DependencyPropertySignature.FromRawSelectionWithGivenClassName(rawSelection, nameof(DependencyPropertySignatureTests));

            var expected = GenerateExpectedResult(PropertySignature.DEFAULTACCESSMODIFIER, "int", "TestName", "TestNameProperty", nameof(DependencyPropertySignatureTests));
            var result   = property.ToString();

            Assert.Equal(expected, result);
        }