public void EncodeFromString(string str, byte[] expected) { // Arrange var context = new TestCaseContext(); var sut = new StringEncoder( context.Options, context.Logger); // Act var result = sut.EncodeFromString(str); // Assert Assert.Equal(expected, result); }