Exemple #1
0
        public void AddFields_Null_DoesNothing()
        {
            var testGroupBase = new TestGroup_InheritsGroupBase();

            testGroupBase.AddFields(null);
            Assert.Empty(testGroupBase.Fields);
        }
Exemple #2
0
        public void AddFields_GroupDoesNotContainField_AddsFieldsToGroup()
        {
            var group  = new TestGroup_InheritsGroupBase();
            var field1 = new Field("TestField");
            var field2 = new Field("TestField");

            Assert.Empty(group.Fields);
            group.AddFields(field1, field2);

            Assert.Contains(field1, group.Fields);
            Assert.Contains(field2, group.Fields);
        }