Beispiel #1
0
        public void GetComponentsCompatibilitTest()
        {
            IRegisterableLake lake = new SunsetLake();

            lake.RegisterSingleton("t", "2401");
            Assert.AreEqual("2401", lake.GetComponents("t").FirstOrDefault());
        }
Beispiel #2
0
        public void CheckTest()
        {
            Assert.ThrowsException <NotSupportedException>(() =>
            {
                ILake lake = new SunsetLake();
                lake.GetComponents("t");
            });

            ILake lake = new TestLake();

            Assert.IsTrue(lake.GetComponents("t").Count() == 0);
        }