示例#1
0
            public void PropertyGroupIsEquivalent_BlankPropertyValue()
            {
                BuildPropertyGroup pg1 = new BuildPropertyGroup();
                BuildPropertyGroup pg2 = new BuildPropertyGroup();

                pg1.SetProperty("Elmo", "Red");
                pg1.SetProperty("BigBird", "Yellow");
                pg1.SetProperty("OscartheGrouch", "Green");

                pg2.SetProperty("Elmo", "Red");
                pg2.SetProperty("BigBird", "");
                pg2.SetProperty("OscartheGrouch", "Green");

                // The two property bags are not equivalent.
                Assertion.Assert(!pg1.IsEquivalent(pg2));
            }
示例#2
0
            public void PropertyGroupIsEquivalent_DifferentCaseOnName()
            {
                BuildPropertyGroup pg1 = new BuildPropertyGroup();
                BuildPropertyGroup pg2 = new BuildPropertyGroup();

                pg1.SetProperty("oscarthegrouch", "Green");
                pg1.SetProperty("bigbird", "Yellow");
                pg1.SetProperty("elmo", "Red");

                pg2.SetProperty("Elmo", "Red");
                pg2.SetProperty("BigBird", "Yellow");
                pg2.SetProperty("OscartheGrouch", "Green");

                // The two property bags are not equivalent.
                Assertion.Assert(pg1.IsEquivalent(pg2));
            }