public void Test1() { page.InputWithoutTidList[1].ClearAndInputText("value 1"); Following.CodeFails(() => { // TODO // page.InputWithoutTidList.ExpectTo().AllItems().ExpectTo().Satisfy(x => x.Value == "value", "ожадалось значение 'value'"); }); }
public void Test2() { Following.CodeFails(() => { page.InputWithoutTidList .Select(x => x.Value) .Wait() .That(Has.All.EqualTo("value")); }); }
public void Test1() { page.InputWithoutTidList[1].ClearAndInputText("value 1"); Following.CodeFails(() => { page.InputWithoutTidList .Select(x => x.Value) .Wait() .That(Has.All.EqualTo("value")); }); }
public void Test3() { Following.CodeFails(() => { page.InputWithoutTidList .Select(x => x.Value) .Wait() .That(Is.EquivalentTo(new[] { "", "value", "value 2" })); }); }
public void TestCheckboxDisabledNegative() { Following.CodeFails(() => page.CheckboxWithDisabledState.IsDisabled.Wait().That(Is.True)); page.CheckboxToDisable.Click(); Following.CodeFails(() => page.CheckboxWithDisabledState.IsDisabled.Wait().That(Is.False)); }
public void Test3() { Following.CodeFails(() => { page.InputWithoutTidList.ExpectTo().ItemsAs(x => x.Value, x => x.Should().AllBeEquivalentTo(new[] { "", "value", "value 2" })); }); }
public void Test2() { Following.CodeFails(() => { page.InputWithoutTidList.ExpectTo().During(TimeSpan.FromSeconds(1)).AllItems().ExpectTo().Satisfy(x => { x.Value.Should().Be("value"); }, "ожадалось значение 'value'"); }); }