public void TestAddGetInstaller() { installer.Setup((o) => o.IsSupports("foo")).Returns(true); manager.AddInstaller(installer.Object); Assert.AreSame(installer.Object, manager.GetInstaller("foo")); }