Get protected property value
27/09/2012 21:43
//Create help public class
public class Class1 : MultiPageNavigationController
{
public Class1(INavigationConfiguration config) : base(config)
{
}
//create method to get property
{
public Class1(INavigationConfiguration config) : base(config)
{
}
//create method to get property
public bool getProperty()
{
return this.RedirectActive;
}
}
{
return this.RedirectActive;
}
}
[TestMethod, Isolated]
public void RedirectActivePropertyCallInitsTestReturnsTrue()
{
Class1 test = new Class1(_config);
Assert.AreEqual(true, test.getProperty());
}
public void RedirectActivePropertyCallInitsTestReturnsTrue()
{
Class1 test = new Class1(_config);
Assert.AreEqual(true, test.getProperty());
}