public void AddStrategy_should_set_ParserInfo_if_null() { var strat = new ProjectStrategy(); _transformer.AddStrategy(strat); Assert.AreSame(_transformer.ParserInfo, strat.ParserInfo); }
public void SetUp() { var slnPath = TestUtility.GetFixturePath(@"ndriven\NDriven.sln"); _info = new ParserInfo(slnPath); _strategy = new ProjectStrategy { ParserInfo = _info }; }
public void AddStrategy_should_not_set_ParserInfo_if_already_set() { var strat = new ProjectStrategy(); var info = new Mock <IParserInfo>(); strat.ParserInfo = info.Object; _transformer.AddStrategy(strat); Assert.AreNotSame(_transformer.ParserInfo, strat.ParserInfo); }