Esempio n. 1
0
        public void should_be_after_a_direct_dependency()
        {
            var s1 = new FileDependency("1");
            var s2 = new FileDependency("2");

            s2.AddDependency(s1);

            s1.MustBeAfter(s2).ShouldBeFalse();
            s2.MustBeAfter(s1).ShouldBeTrue();
        }
Esempio n. 2
0
        public void extender_scenario()
        {
            var s1 = new FileDependency("1");
            var s2 = new FileDependency("2");

            s2.AddDependency(s1);

            s2.MustBeAfter(s1).ShouldBeTrue();
            s1.MustBeAfter(s2).ShouldBeFalse();
        }
Esempio n. 3
0
        public void should_be_after_a_direct_dependency_2_deep()
        {
            var s1 = new FileDependency("1");
            var s2 = new FileDependency("2");
            var s3 = new FileDependency("3");

            s3.AddDependency(s2);
            s2.AddDependency(s1);

            s3.MustBeAfter(s1).ShouldBeTrue();
            s3.MustBeAfter(s2).ShouldBeTrue();
        }
Esempio n. 4
0
        public void should_be_after_bouncing_through_a_set()
        {
            var s1 = new FileDependency("1");
            var s2 = new FileDependency("2");
            var s3 = new FileDependency("3");

            var set = new AssetSet();
            set.Add(s1);

            s2.AddDependency(set);
            s3.AddDependency(s2);

            s3.MustBeAfter(s1).ShouldBeTrue();
            s3.MustBeAfter(s2).ShouldBeTrue();
        }