public void TestToggleDoesNotExistExceptionIsReturnedWhenParsingAnItemThatDoesNotExist() { var configParser = new ToggleParser(); Assert.Throws <ToggleDoesNotExistException>(() => configParser.GetToggleStatus("wewewewewewewewe")); }
public void TestFalseIsReturnedWhenParsingAnItemThatIsToggledOff() { var configParser = new ToggleParser(); Assert.IsFalse(configParser.GetToggleStatus("NotFinished")); }
public void TestToggleParsedOutOfRangeExceptionIsReturnedWhenParsingAnItemThatIsToggledAsdf() { var configParser = new ToggleParser(); Assert.Throws <ToggleParsedOutOfRangeException>(() => configParser.GetToggleStatus("asdf")); }
public void TestTrueIsReturnedWhenParsingAnItemThatIsToggledOn() { var configParser = new ToggleParser(); Assert.IsTrue(configParser.GetToggleStatus("ButtonToggle")); }