public void GetPartBySymbol_UnsupportedSymbol() { TestPartFactory f = new TestPartFactory(); Part p = f.GetPartBySymbol("UNSUPPORTED SYMBOL"); Assert.IsNull(p, "Null= " + (p == null).ToString()); }
public void GetValueBySymbol() { string symbol = "{TESTPART}"; //This must be a valid supported symbol TestPartFactory f = new TestPartFactory(); Assert.IsTrue(f.SupportedSymbols.Contains(symbol), "Results for the next assert are bogus since factory doesn't support this symbol"); //f.GetValueBySymbol }
public void GetPartBySymbol() { string symbol = "{TESTPART}"; //This must be a valid supported symbol TestPartFactory f = new TestPartFactory(); Assert.IsTrue(f.SupportedSymbols.Contains(symbol), "Results for the next assert are bogus since factory doesn't support this symbol"); Part p = f.GetPartBySymbol(symbol); Assert.IsNotNull(p); Assert.IsInstanceOfType(p, typeof(TestPart)); }