Esempio n. 1
0
        public void add_behavior_details_1()
        {
            report.StartBehavior(inner);
            report.StartBehavior(inner);

            var details = new RedirectReport
            {
                Url = "typeof(FakeBehavior)"
            };
            report.AddDetails(details);

            report.StartBehavior(inner);
            report.StartBehavior(inner);

            report.Skip(1).First().ShouldHaveTheSameElementsAs(new BehaviorStart(), details);
        }
Esempio n. 2
0
        public void add_behavior_details_2()
        {
            report.StartBehavior(inner);
            report.StartBehavior(inner);

            report.EndBehavior();

            var details = new RedirectReport
            {
                Url = "typeof(FakeBehavior)"
            };
            report.AddDetails(details);
            report.EndBehavior();

            report.First().ShouldHaveTheSameElementsAs(new BehaviorStart(), details, new BehaviorFinish());
            report.Skip(1).First().Count().ShouldEqual(2); // start & finish
        }
Esempio n. 3
0
 public bool Equals(RedirectReport other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Url, Url);
 }
 public void Redirect(RedirectReport report)
 {
 }