2021-08-11 11:06:46 +03:00
|
|
|
namespace fsharp
|
2016-05-26 16:06:52 +03:00
|
|
|
|
|
|
|
open System
|
|
|
|
open System.Reflection
|
|
|
|
|
|
|
|
open Foundation
|
|
|
|
|
|
|
|
open NUnit.Framework
|
|
|
|
|
|
|
|
[<TestFixture>]
|
|
|
|
[<Preserve (AllMembers=true)>]
|
|
|
|
type FSharpTest () =
|
|
|
|
[<Test>]
|
|
|
|
member x.Func () =
|
|
|
|
()
|
2017-03-22 15:47:57 +03:00
|
|
|
|
|
|
|
[<Test>]
|
|
|
|
member x.SprintfTest () =
|
|
|
|
// Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=52866
|
|
|
|
let a = 1111
|
|
|
|
let b = 2222
|
|
|
|
let c = 3333
|
|
|
|
let d = 4444
|
|
|
|
let e = 5555
|
|
|
|
|
|
|
|
let pr = sprintf "%d %d %d %d %d" a b c d e
|
2018-08-20 20:06:01 +03:00
|
|
|
Assert.AreEqual ("1111 2222 3333 4444 5555", pr)
|