public void MapErrorWhenSuccess() { var expected = "New Error"; var initial = Either <string, string> .CreateSuccess("Success"); var result = initial.MapError(_ => expected); Assert.True(result.IsSuccess); Assert.False(result.IsError); Assert.Equal("Success", result.AsSuccess.Value); }