public void CreatedDecoderMapsToInput() { // Arrange var firstValue = "firstValue"; var secondValue = "secondValue"; var firstCode = 0; var secondCode = 1; var lookup = new Dictionary<string, int> { {firstValue, firstCode}, {secondValue, secondCode} }; var mapper = new Mapper<string, int>(lookup); // Act var decoder = mapper.CreateDecoder(); // Assert Assert.AreEqual(firstValue, decoder.Map(firstCode)); Assert.AreEqual(secondValue, decoder.Map(secondCode)); }