public void RemoveNonExistentVariable_Returns_ExpectedAction() { ProfileGroupType.GroupTypeVariable buildPath = new ProfileGroupType.GroupTypeVariable("BuildPath", "Test Build Path"); ProfileGroupType profileGroupType = new ProfileGroupType("prefix"); profileGroupType.RemoveVariable(buildPath); LogAssert.Expect(LogType.Error, "prefix.BuildPath does not exist."); }
public void RemoveVariable_Returns_ExpectedAction() { ProfileGroupType.GroupTypeVariable buildPath = new ProfileGroupType.GroupTypeVariable("BuildPath", "Test Build Path"); ProfileGroupType profileGroupType = new ProfileGroupType("prefix"); profileGroupType.AddVariable(buildPath); profileGroupType.RemoveVariable(buildPath); Assert.True(profileGroupType.Variables.Count == 0); }