Example #1
0
        public void GetPartBySymbol_UnsupportedSymbol()
        {
            TestPartFactory f = new TestPartFactory();
            Part            p = f.GetPartBySymbol("UNSUPPORTED SYMBOL");

            Assert.IsNull(p, "Null= " + (p == null).ToString());
        }
Example #2
0
        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
        }
Example #3
0
        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));
        }