public void GetComponentsCompatibilitTest() { IRegisterableLake lake = new SunsetLake(); lake.RegisterSingleton("t", "2401"); Assert.AreEqual("2401", lake.GetComponents("t").FirstOrDefault()); }
public void CheckTest() { Assert.ThrowsException <NotSupportedException>(() => { ILake lake = new SunsetLake(); lake.GetComponents("t"); }); ILake lake = new TestLake(); Assert.IsTrue(lake.GetComponents("t").Count() == 0); }