예제 #1
0
        public void TestEnsureBinariesPresence()
        {
            package.Setup((o) => o.GetPackageType()).Returns("foo");
            installer.Setup((o) => o.IsSupports("foo")).Returns(true);
            installer.As <IBinaryPresence>().Setup((o) => o.EnsureBinariesPresence(package.Object));
            manager.AddInstaller(installer.Object);

            manager.EnsureBinariesPresence(package.Object);

            installer.As <IBinaryPresence>().Verify((o) => o.EnsureBinariesPresence(package.Object));
        }