Example #1
0
        public void add_dependency_returns_later()
        {
            var dep1 = Dependency.Optional("Bottle1");
            var dep2 = Dependency.Optional("Bottle2");
            var dep3 = Dependency.Optional("Bottle3");

            thePackage.AddDependency(dep1);
            thePackage.AddDependency(dep2);
            thePackage.AddDependency(dep3);

            thePackage.As <IPackageInfo>().Dependencies
            .ShouldHaveTheSameElementsAs(dep1, dep2, dep3);
        }