public void ThenIsAddedToTheList(string name) { var value = new TestPage(WebDriver.GetDriver()).GetItemsName(); Assert.IsTrue(value.Equals(name), $"Item's name mismatch. Expected: {name}. Actual: {value}"); }