protected override void Check() { _x = 2; P1.ShouldBe(4); P3.ShouldBe(1); _x = 10; P1.ShouldBe(20); P3.ShouldBe(5); P2.ShouldBe(77); var c1 = new C(7); c1.P.ShouldBe(7); var c2 = new C(77); c2.P.ShouldBe(77); P4 = 9; P4.ShouldBe(9); P4 = 11; P4.ShouldBe(11); P5 = 13; _x.ShouldBe(13); P5 = 131; _x.ShouldBe(131); P6 = 16; P6.ShouldBe(16); P6 = 8; P6.ShouldBe(8); }
protected override void Check() { _x = 2; base.P1.ShouldBe(4); base.P3.ShouldBe(1); _x = 10; base.P1.ShouldBe(20); base.P3.ShouldBe(5); base.P2.ShouldBe(77); base.P4 = 9; base.P4.ShouldBe(9); base.P4 = 11; base.P4.ShouldBe(11); base.P5 = 13; _x.ShouldBe(13); base.P5 = 131; _x.ShouldBe(131); base.P6 = 16; base.P6.ShouldBe(16); base.P6 = 8; base.P6.ShouldBe(8); _x = 4; P1.ShouldBe(16); P3.ShouldBe(1); _x = 16; P1.ShouldBe(64); P3.ShouldBe(4); P2.ShouldBe(771); P4 = 19; P4.ShouldBe(19); base.P4.ShouldBe(11); P4 = 111; P4.ShouldBe(111); base.P4.ShouldBe(11); P5 = 13; _x.ShouldBe(14); P5 = 131; _x.ShouldBe(132); P6 = 16; _x.ShouldBe(4); P6.ShouldBe(16); P6 = 8; _x.ShouldBe(2); P6.ShouldBe(8); P7 = -1; P7.ShouldBe(-1); }