public void ReturnBoolAsGenericTest() { // Arrange. // Act. IResult result = FakeService.BooleanOperation(() => true); // Assert. Assert.True(result is Success); Assert.True(result is Success <bool>); Assert.Equal(typeof(bool), result.GetResultType()); Assert.True((result as Success <bool>).Value); Assert.False(result.IsVoid); }