コード例 #1
0
 public bool Equals(RedirectReport other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Url, Url));
 }
コード例 #2
0
ファイル: DebugReportTester.cs プロジェクト: jemacom/fubumvc
        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);
        }
コード例 #3
0
ファイル: DebugReportTester.cs プロジェクト: jemacom/fubumvc
        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
        }
コード例 #4
0
 public void Redirect(RedirectReport report)
 {
 }
コード例 #5
0
ファイル: RedirectReport.cs プロジェクト: jemacom/fubumvc
 public bool Equals(RedirectReport other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Url, Url);
 }