public void CreateValidProfileGroupType_Returns_ValidProfileGroupType() { ProfileGroupType.GroupTypeVariable buildPath = new ProfileGroupType.GroupTypeVariable("BuildPath", "Test Build Path"); ProfileGroupType.GroupTypeVariable loadPath = new ProfileGroupType.GroupTypeVariable("LoadPath", "Test Load Path"); ProfileGroupType profileGroupType = new ProfileGroupType("prefix"); profileGroupType.AddVariable(buildPath); profileGroupType.AddVariable(loadPath); Assert.True(profileGroupType.IsValidGroupType()); }
public void CreateValidProfileGroupType_Returns_ValidProfileGroupType() { ProfileGroupType.GroupTypeVariable buildPath = new ProfileGroupType.GroupTypeVariable("BuildPath", "Test Build Path"); ProfileGroupType.GroupTypeVariable loadPath = new ProfileGroupType.GroupTypeVariable("LoadPath", "Test Load Path"); ProfileGroupType profileGroupType = new ProfileGroupType("prefix"); bool aAdded = profileGroupType.AddVariable(buildPath); bool bAdded = profileGroupType.AddVariable(loadPath); Assert.IsTrue(aAdded && bAdded, "Failed to Add variables"); Assert.True(profileGroupType.IsValidGroupType()); }
public void CreatePrefixedProfileGroupType_Returns_InvalidProfileGroupType() { ProfileGroupType profileGroupType = new ProfileGroupType("prefix"); Assert.False(profileGroupType.IsValidGroupType()); }
public void CreateEmptyProfileGroupType_Returns_InvalidProfileGroupType() { ProfileGroupType profileGroupType = new ProfileGroupType(); Assert.False(profileGroupType.IsValidGroupType()); }