public void AddStWithVariableName_NormalData_Added() { // Assign _stringTable.Setup(x => x.GetItem(It.Is <string>(d => d == "Bar"))).Returns("Test"); // Act _dataCollector.AddSt("Foo", "Bar"); // Assert Assert.AreEqual("Test", _dataCollector["Foo"]); }