Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC FS-1004] FSharpResult type with a few tests #964

Merged
merged 10 commits into from Jul 7, 2016
Expand Up @@ -106,6 +106,7 @@
<None Include="FSharp.Core\Microsoft.FSharp.Core\IntConversionsTestGenerator.fsx" />
<Compile Include="FSharp.Core\Microsoft.FSharp.Core\OptionModule.fs" />
<Compile Include="FSharp.Core\Microsoft.FSharp.Core\PrintfTests.fs" />
<Compile Include="FSharp.Core\Microsoft.FSharp.Core\ResultTests.fs" />
<Compile Include="FSharp.Core\Microsoft.FSharp.Control\Cancellation.fs" />
<Compile Include="FSharp.Core\Microsoft.FSharp.Control\AsyncType.fs" />
<Compile Include="FSharp.Core\Microsoft.FSharp.Control\LazyType.fs" />
Expand Down
@@ -0,0 +1,44 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

// Various tests for:
// Microsoft.FSharp.Core.ExtraTopLevelOperators.printf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust this comment to match the test target.


namespace FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Core

open System
open FSharp.Core.Unittests.LibraryTestFx
open NUnit.Framework

type EmailValidation=
| Empty
| NoAt

module Results=
let bind f m = match m with Error e -> Error e | Success x -> f x

open Results

[<TestFixture>]
type ResultTests() =

let fail_if_empty email=
if String.IsNullOrEmpty(email) then Error Empty else Success email

let fail_if_not_at (email:string)=
if (email.Contains("@")) then Success email else Error NoAt

let validate_email =
fail_if_empty
>> bind fail_if_not_at

let test_validate_email email (expected:Result<string,EmailValidation>) =
let actual = validate_email email
Assert.AreEqual(expected, actual)


[<Test>]
member this.CanChainTogetherSuccessiveValidations() =
test_validate_email "" (Error Empty)
test_validate_email "something_else" (Error NoAt)
test_validate_email "some@email.com" (Success "some@email.com")

63 changes: 63 additions & 0 deletions src/fsharp/FSharp.Core.Unittests/SurfaceArea.Silverlight.2.0.fs
Expand Up @@ -1821,6 +1821,69 @@ Microsoft.FSharp.Core.FSharpRef`1[T]: T get_contents()
Microsoft.FSharp.Core.FSharpRef`1[T]: Void .ctor(T)
Microsoft.FSharp.Core.FSharpRef`1[T]: Void set_Value(T)
Microsoft.FSharp.Core.FSharpRef`1[T]: Void set_contents(T)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: T2 Item
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: T2 get_Item()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: T1 Item
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: T1 get_Item()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 Error
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 Success
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2[T1,T2] NewError(T2)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2[T1,T2] NewSuccess(T1)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpTypeFunc: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpTypeFunc: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpTypeFunc: System.Object Specialize[T]()
Expand Down
63 changes: 63 additions & 0 deletions src/fsharp/FSharp.Core.Unittests/SurfaceArea.net20.fs
Expand Up @@ -2000,6 +2000,69 @@ Microsoft.FSharp.Core.FSharpRef`1[T]: T get_contents()
Microsoft.FSharp.Core.FSharpRef`1[T]: Void .ctor(T)
Microsoft.FSharp.Core.FSharpRef`1[T]: Void set_Value(T)
Microsoft.FSharp.Core.FSharpRef`1[T]: Void set_contents(T)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: T2 Item
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: T2 get_Item()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: T1 Item
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: T1 get_Item()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 Error
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 Success
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2[T1,T2] NewError(T2)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2[T1,T2] NewSuccess(T1)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpTypeFunc: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpTypeFunc: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpTypeFunc: System.Object Specialize[T]()
Expand Down
63 changes: 63 additions & 0 deletions src/fsharp/FSharp.Core.Unittests/SurfaceArea.net40.fs
Expand Up @@ -2157,6 +2157,69 @@ Microsoft.FSharp.Core.FSharpRef`1[T]: T get_contents()
Microsoft.FSharp.Core.FSharpRef`1[T]: Void .ctor(T)
Microsoft.FSharp.Core.FSharpRef`1[T]: Void set_Value(T)
Microsoft.FSharp.Core.FSharpRef`1[T]: Void set_contents(T)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: T2 Item
Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]: T2 get_Item()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: T1 Item
Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]: T1 get_Item()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 Error
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: Int32 Success
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean Equals(System.Object, System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean IsError
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean IsSuccess
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean get_IsError()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Boolean get_IsSuccess()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(Microsoft.FSharp.Core.FSharpResult`2[T1,T2])
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(System.Object)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 CompareTo(System.Object, System.Collections.IComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 GetHashCode(System.Collections.IEqualityComparer)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 Tag
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Int32 get_Tag()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Error[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Success[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2+Tags[T1,T2]
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2[T1,T2] NewError(T2)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: Microsoft.FSharp.Core.FSharpResult`2[T1,T2] NewSuccess(T1)
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: System.String ToString()
Microsoft.FSharp.Core.FSharpResult`2[T1,T2]: System.Type GetType()
Microsoft.FSharp.Core.FSharpTypeFunc: Boolean Equals(System.Object)
Microsoft.FSharp.Core.FSharpTypeFunc: Int32 GetHashCode()
Microsoft.FSharp.Core.FSharpTypeFunc: System.Object Specialize[T]()
Expand Down