private void DoGetValueStringTest(string value, ComponentPresence valuePresence, string expectedResult) { // Arrange var mock = new Mock <DirectiveHandler>(); mock.Setup(h => h.Value).Returns(valuePresence); DirectiveHandler sut = mock.Object; // Act string result = sut.GetValueString(value); // Assert Assert.AreEqual(expectedResult, result); }