public void CheckForOtherParametersTest005_SetNotHidden() { string paramaterPassed = "not-hidden"; Visibility expetced = Visibility.Hidden;//defualt for false SampleToVisibiltyClass converter = new SampleToVisibiltyClass(); converter.CheckForOtherParameters_Access(paramaterPassed); Assert.AreEqual(expetced, converter.ReturnWhenFalse_Access); }
public void CheckForOtherParametersTest004_SetNotCollapsed() { string paramaterPassed = "collapsed-not"; Visibility expetced = Visibility.Collapsed; SampleToVisibiltyClass converter = new SampleToVisibiltyClass(); converter.CheckForOtherParameters_Access(paramaterPassed); Assert.AreEqual(expetced, converter.ReturnWhenFalse_Access); }
public void CheckForOtherParametersTest006_SomeRandoemParams() { string paramaterPassed = "some random string - and other collapsed string - test"; Visibility expetced = Visibility.Collapsed;//defualt for false SampleToVisibiltyClass converter = new SampleToVisibiltyClass(); converter.CheckForOtherParameters_Access(paramaterPassed); Assert.AreEqual(expetced, converter.ReturnWhenFalse_Access); }
public void CheckForOtherParametersTest007_ConvertTwice_FirstOverridesReturnFalse() { string paramaterPassed = "some -hidden"; Visibility expetced = Visibility.Hidden;//defualt for false SampleToVisibiltyClass converter = new SampleToVisibiltyClass(); converter.CheckForOtherParameters_Access(paramaterPassed); Assert.AreEqual(expetced, converter.ReturnWhenFalse_Access); //another call - without converter params paramaterPassed = ""; expetced = Visibility.Collapsed; converter.CheckForOtherParameters_Access(paramaterPassed); Assert.AreEqual(expetced, converter.ReturnWhenFalse_Access); }