-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathChai.fs
More file actions
1296 lines (1238 loc) · 80.4 KB
/
Chai.fs
File metadata and controls
1296 lines (1238 loc) · 80.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ts2fable 0.0.0
module rec Chai
#nowarn "3390" // disable warnings for invalid XML comments
#nowarn "0044" // disable warnings for `Obsolete` usage
open System
open Fable.Core
open Fable.Core.JS
type Array<'T> = System.Collections.Generic.IList<'T>
type Error = System.Exception
type Function = System.Action
type ReadonlyMap<'K, 'V> = Map<'K, 'V>
type ReadonlySet<'T> = Set<'T>
type RegExp = System.Text.RegularExpressions.Regex
type Symbol = obj
let [<ImportAll("chai")>] chai: Chai.ChaiStatic = jsNative
module Chai =
type [<AllowNullLiteral>] IExports =
abstract ErrorConstructor: ErrorConstructorStatic
abstract Assertion: AssertionStaticStatic
abstract AssertionError: AssertionErrorStatic
type Message =
U2<string, (unit -> string)>
type ObjectProperty =
U3<string, Symbol, float>
type [<AllowNullLiteral>] PathInfo =
abstract parent: obj with get, set
abstract name: string with get, set
abstract value: obj option with get, set
abstract exists: bool with get, set
type [<AllowNullLiteral>] ErrorConstructor =
interface end
type [<AllowNullLiteral>] ErrorConstructorStatic =
[<EmitConstructor>] abstract Create: [<ParamArray>] args: obj option[] -> ErrorConstructor
type [<AllowNullLiteral>] ChaiUtils =
abstract addChainableMethod: ctx: obj * name: string * method: (ResizeArray<obj option> -> unit) * ?chainingBehavior: (unit -> unit) -> unit
abstract overwriteChainableMethod: ctx: obj * name: string * method: (ResizeArray<obj option> -> unit) * ?chainingBehavior: (unit -> unit) -> unit
abstract addLengthGuard: fn: Function * assertionName: string * isChainable: bool -> unit
abstract addMethod: ctx: obj * name: string * method: Function -> unit
abstract addProperty: ctx: obj * name: string * getter: (unit -> obj option) -> unit
abstract overwriteMethod: ctx: obj * name: string * method: Function -> unit
abstract overwriteProperty: ctx: obj * name: string * getter: (unit -> obj option) -> unit
abstract compareByInspect: a: obj * b: obj -> ChaiUtilsCompareByInspect
abstract expectTypes: obj: obj * types: ResizeArray<string> -> unit
abstract flag: obj: obj * key: string * ?value: obj -> obj option
abstract getActual: obj: obj * args: AssertionArgs -> obj option
abstract getProperties: obj: obj -> ResizeArray<string>
abstract getEnumerableProperties: obj: obj -> ResizeArray<string>
abstract getOwnEnumerablePropertySymbols: obj: obj -> ResizeArray<Symbol>
abstract getOwnEnumerableProperties: obj: obj -> Array<U2<string, Symbol>>
abstract getMessage: errorLike: U2<Error, string> -> string
abstract getMessage: obj: obj option * args: AssertionArgs -> string
abstract inspect: obj: obj option * ?showHidden: bool * ?depth: float * ?colors: bool -> string
abstract isProxyEnabled: unit -> bool
abstract objDisplay: obj: obj -> unit
abstract proxify: obj: obj * nonChainableMethodName: string -> obj
abstract test: obj: obj * args: AssertionArgs -> bool
abstract transferFlags: assertion: Assertion * obj: obj * ?includeAll: bool -> unit
abstract compatibleInstance: thrown: Error * errorLike: U2<Error, ErrorConstructor> -> bool
abstract compatibleConstructor: thrown: Error * errorLike: U2<Error, ErrorConstructor> -> bool
abstract compatibleMessage: thrown: Error * errMatcher: U2<string, RegExp> -> bool
abstract getConstructorName: constructorFn: Function -> string
abstract getFuncName: constructorFn: Function -> string option
abstract hasProperty: obj: obj option * name: ObjectProperty -> bool
abstract getPathInfo: obj: obj * path: string -> PathInfo
abstract getPathValue: obj: obj * path: string -> obj option
type [<AllowNullLiteral>] ChaiPlugin =
[<Emit("$0($1...)")>] abstract Invoke: chai: ChaiStatic * utils: ChaiUtils -> unit
type [<AllowNullLiteral>] ChaiStatic =
abstract expect: ExpectStatic with get, set
abstract should: unit -> Should
/// Provides a way to extend the internals of Chai
abstract ``use``: fn: ChaiPlugin -> ChaiStatic
abstract util: ChaiUtils with get, set
abstract ``assert``: AssertStatic with get, set
abstract config: Config with get, set
abstract Assertion: AssertionStatic with get, set
abstract AssertionError: obj with get, set
abstract version: string with get, set
type [<AllowNullLiteral>] ExpectStatic =
[<Emit("$0($1...)")>] abstract Invoke: ``val``: obj option * ?message: string -> Assertion
abstract fail: ?message: string -> obj
abstract fail: actual: obj option * expected: obj option * ?message: string * ?operator: Operator -> obj
type [<AllowNullLiteral>] AssertStatic =
inherit Assert
type AssertionArgs =
obj option * Message * Message * obj option * obj * obj
type [<AllowNullLiteral>] AssertionPrototype =
abstract ``assert``: [<ParamArray>] args: AssertionArgs -> unit
abstract _obj: obj option with get, set
type [<AllowNullLiteral>] AssertionStatic =
inherit AssertionPrototype
abstract prototype: AssertionPrototype with get, set
abstract includeStack: bool with get, set
abstract showDiff: bool with get, set
abstract addProperty: name: string * getter: (AssertionStatic -> obj option) -> unit
abstract addMethod: name: string * method: (AssertionStatic -> ResizeArray<obj option> -> obj option) -> unit
abstract addChainableMethod: name: string * method: (AssertionStatic -> ResizeArray<obj option> -> unit) * ?chainingBehavior: (unit -> unit) -> unit
abstract overwriteProperty: name: string * getter: (AssertionStatic -> obj option) -> unit
abstract overwriteMethod: name: string * method: (AssertionStatic -> ResizeArray<obj option> -> obj option) -> unit
abstract overwriteChainableMethod: name: string * method: (AssertionStatic -> ResizeArray<obj option> -> unit) * ?chainingBehavior: (unit -> unit) -> unit
type [<AllowNullLiteral>] AssertionStaticStatic =
[<EmitConstructor>] abstract Create: target: obj option * ?message: string * ?ssfi: Function * ?lockSsfi: bool -> AssertionStatic
type Operator =
string
type OperatorComparable =
U4<bool, float, string, DateTime> option
type [<AllowNullLiteral>] ShouldAssertion =
abstract equal: value1: obj option * value2: obj option * ?message: string -> unit
abstract Throw: ShouldThrow with get, set
abstract throw: ShouldThrow with get, set
abstract exist: value: obj option * ?message: string -> unit
type [<AllowNullLiteral>] Should =
inherit ShouldAssertion
abstract not: ShouldAssertion with get, set
abstract fail: ?message: string -> obj
abstract fail: actual: obj option * expected: obj option * ?message: string * ?operator: Operator -> obj
type [<AllowNullLiteral>] ShouldThrow =
[<Emit("$0($1...)")>] abstract Invoke: actual: Function * ?expected: U2<string, RegExp> * ?message: string -> unit
[<Emit("$0($1...)")>] abstract Invoke: actual: Function * constructor: U2<Error, Function> * ?expected: U2<string, RegExp> * ?message: string -> unit
type [<AllowNullLiteral>] Assertion =
inherit LanguageChains
inherit NumericComparison
inherit TypeComparison
abstract not: Assertion with get, set
abstract deep: Deep with get, set
abstract ordered: Ordered with get, set
abstract nested: Nested with get, set
abstract own: Own with get, set
abstract any: KeyFilter with get, set
abstract all: KeyFilter with get, set
abstract a: Assertion with get, set
abstract an: Assertion with get, set
abstract ``include``: Include with get, set
abstract includes: Include with get, set
abstract contain: Include with get, set
abstract contains: Include with get, set
abstract ok: Assertion with get, set
abstract ``true``: Assertion with get, set
abstract ``false``: Assertion with get, set
abstract ``null``: Assertion with get, set
abstract undefined: Assertion with get, set
abstract NaN: Assertion with get, set
abstract exist: Assertion with get, set
abstract empty: Assertion with get, set
abstract arguments: Assertion with get, set
abstract Arguments: Assertion with get, set
abstract finite: Assertion with get, set
abstract equal: Equal with get, set
abstract equals: Equal with get, set
abstract eq: Equal with get, set
abstract eql: Equal with get, set
abstract eqls: Equal with get, set
abstract property: Property with get, set
abstract ownProperty: Property with get, set
abstract haveOwnProperty: Property with get, set
abstract ownPropertyDescriptor: OwnPropertyDescriptor with get, set
abstract haveOwnPropertyDescriptor: OwnPropertyDescriptor with get, set
abstract length: Length with get, set
abstract lengthOf: Length with get, set
abstract ``match``: Match with get, set
abstract matches: Match with get, set
abstract string: string: string * ?message: string -> Assertion
abstract keys: Keys with get, set
abstract key: string: string -> Assertion
abstract throw: Throw with get, set
abstract throws: Throw with get, set
abstract Throw: Throw with get, set
abstract respondTo: RespondTo with get, set
abstract respondsTo: RespondTo with get, set
abstract itself: Assertion with get, set
abstract satisfy: Satisfy with get, set
abstract satisfies: Satisfy with get, set
abstract closeTo: CloseTo with get, set
abstract approximately: CloseTo with get, set
abstract members: Members with get, set
abstract increase: PropertyChange with get, set
abstract increases: PropertyChange with get, set
abstract decrease: PropertyChange with get, set
abstract decreases: PropertyChange with get, set
abstract change: PropertyChange with get, set
abstract changes: PropertyChange with get, set
abstract extensible: Assertion with get, set
abstract ``sealed``: Assertion with get, set
abstract frozen: Assertion with get, set
abstract oneOf: OneOf with get, set
type [<AllowNullLiteral>] LanguageChains =
abstract ``to``: Assertion with get, set
abstract be: Assertion with get, set
abstract been: Assertion with get, set
abstract is: Assertion with get, set
abstract that: Assertion with get, set
abstract which: Assertion with get, set
abstract ``and``: Assertion with get, set
abstract has: Assertion with get, set
abstract have: Assertion with get, set
abstract ``with``: Assertion with get, set
abstract at: Assertion with get, set
abstract ``of``: Assertion with get, set
abstract same: Assertion with get, set
abstract but: Assertion with get, set
abstract does: Assertion with get, set
type [<AllowNullLiteral>] NumericComparison =
abstract above: NumberComparer with get, set
abstract gt: NumberComparer with get, set
abstract greaterThan: NumberComparer with get, set
abstract least: NumberComparer with get, set
abstract gte: NumberComparer with get, set
abstract greaterThanOrEqual: NumberComparer with get, set
abstract below: NumberComparer with get, set
abstract lt: NumberComparer with get, set
abstract lessThan: NumberComparer with get, set
abstract most: NumberComparer with get, set
abstract lte: NumberComparer with get, set
abstract lessThanOrEqual: NumberComparer with get, set
abstract within: start: float * finish: float * ?message: string -> Assertion
abstract within: start: DateTime * finish: DateTime * ?message: string -> Assertion
type [<AllowNullLiteral>] NumberComparer =
[<Emit("$0($1...)")>] abstract Invoke: value: U2<float, DateTime> * ?message: string -> Assertion
type [<AllowNullLiteral>] TypeComparison =
[<Emit("$0($1...)")>] abstract Invoke: ``type``: string * ?message: string -> Assertion
abstract instanceof: InstanceOf with get, set
abstract instanceOf: InstanceOf with get, set
type [<AllowNullLiteral>] InstanceOf =
[<Emit("$0($1...)")>] abstract Invoke: constructor: obj option * ?message: string -> Assertion
type [<AllowNullLiteral>] CloseTo =
[<Emit("$0($1...)")>] abstract Invoke: expected: float * delta: float * ?message: string -> Assertion
type [<AllowNullLiteral>] Nested =
abstract ``include``: Include with get, set
abstract includes: Include with get, set
abstract contain: Include with get, set
abstract contains: Include with get, set
abstract property: Property with get, set
abstract members: Members with get, set
type [<AllowNullLiteral>] Own =
abstract ``include``: Include with get, set
abstract includes: Include with get, set
abstract contain: Include with get, set
abstract contains: Include with get, set
abstract property: Property with get, set
type [<AllowNullLiteral>] Deep =
inherit KeyFilter
abstract equal: Equal with get, set
abstract equals: Equal with get, set
abstract eq: Equal with get, set
abstract ``include``: Include with get, set
abstract includes: Include with get, set
abstract contain: Include with get, set
abstract contains: Include with get, set
abstract property: Property with get, set
abstract ordered: Ordered with get, set
abstract nested: Nested with get, set
abstract own: Own with get, set
type [<AllowNullLiteral>] Ordered =
abstract members: Members with get, set
type [<AllowNullLiteral>] KeyFilter =
abstract keys: Keys with get, set
abstract members: Members with get, set
type [<AllowNullLiteral>] Equal =
[<Emit("$0($1...)")>] abstract Invoke: value: obj option * ?message: string -> Assertion
type [<AllowNullLiteral>] Property =
[<Emit("$0($1...)")>] abstract Invoke: name: U2<string, Symbol> * value: obj option * ?message: string -> Assertion
[<Emit("$0($1...)")>] abstract Invoke: name: U2<string, Symbol> * ?message: string -> Assertion
type [<AllowNullLiteral>] OwnPropertyDescriptor =
[<Emit("$0($1...)")>] abstract Invoke: name: U2<string, Symbol> * descriptor: PropertyDescriptor * ?message: string -> Assertion
[<Emit("$0($1...)")>] abstract Invoke: name: U2<string, Symbol> * ?message: string -> Assertion
type [<AllowNullLiteral>] Length =
inherit LanguageChains
inherit NumericComparison
[<Emit("$0($1...)")>] abstract Invoke: length: float * ?message: string -> Assertion
type [<AllowNullLiteral>] Include =
[<Emit("$0($1...)")>] abstract Invoke: value: obj option * ?message: string -> Assertion
abstract keys: Keys with get, set
abstract deep: Deep with get, set
abstract ordered: Ordered with get, set
abstract members: Members with get, set
abstract any: KeyFilter with get, set
abstract all: KeyFilter with get, set
abstract oneOf: OneOf with get, set
type [<AllowNullLiteral>] OneOf =
[<Emit("$0($1...)")>] abstract Invoke: list: ResizeArray<obj> * ?message: string -> Assertion
type [<AllowNullLiteral>] Match =
[<Emit("$0($1...)")>] abstract Invoke: regexp: RegExp * ?message: string -> Assertion
type [<AllowNullLiteral>] Keys =
[<Emit("$0($1...)")>] abstract Invoke: [<ParamArray>] keys: string[] -> Assertion
[<Emit("$0($1...)")>] abstract Invoke: keys: U2<ResizeArray<obj option>, Object> -> Assertion
type [<AllowNullLiteral>] Throw =
[<Emit("$0($1...)")>] abstract Invoke: ?expected: U2<string, RegExp> * ?message: string -> Assertion
[<Emit("$0($1...)")>] abstract Invoke: constructor: U2<Error, Function> * ?expected: U2<string, RegExp> * ?message: string -> Assertion
type [<AllowNullLiteral>] RespondTo =
[<Emit("$0($1...)")>] abstract Invoke: method: string * ?message: string -> Assertion
type [<AllowNullLiteral>] Satisfy =
[<Emit("$0($1...)")>] abstract Invoke: matcher: Function * ?message: string -> Assertion
type [<AllowNullLiteral>] Members =
[<Emit("$0($1...)")>] abstract Invoke: set: ResizeArray<obj option> * ?message: string -> Assertion
type [<AllowNullLiteral>] PropertyChange =
[<Emit("$0($1...)")>] abstract Invoke: object: Object * ?property: string * ?message: string -> DeltaAssertion
type [<AllowNullLiteral>] DeltaAssertion =
inherit Assertion
abstract by: delta: float * ?msg: string -> Assertion
type [<AllowNullLiteral>] Assert =
/// <param name="expression">Expression to test for truthiness.</param>
/// <param name="message">Message to display on error.</param>
[<Emit("$0($1...)")>] abstract Invoke: expression: obj option * ?message: string -> unit
/// <summary>Throws a failure.</summary>
/// <param name="message">Message to display on error.</param>
/// <remarks>Node.js assert module-compatible.</remarks>
abstract fail: ?message: string -> obj
/// <summary>Throws a failure.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
/// <param name="operator">Comparison operator, if not strict equality.</param>
/// <remarks>Node.js assert module-compatible.</remarks>
abstract fail: actual: 'T * expected: 'T * ?message: string * ?operator: Operator -> obj
/// <summary>Asserts that object is truthy.</summary>
/// <param name="object">Object to test.</param>
/// <param name="message">Message to display on error.</param>
abstract isOk: value: 'T * ?message: string -> unit
/// <summary>Asserts that object is truthy.</summary>
/// <param name="object">Object to test.</param>
/// <param name="message">Message to display on error.</param>
abstract ok: value: 'T * ?message: string -> unit
/// <summary>Asserts that object is falsy.</summary>
/// <param name="object">Object to test.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotOk: value: 'T * ?message: string -> unit
/// <summary>Asserts that object is falsy.</summary>
/// <param name="object">Object to test.</param>
/// <param name="message">Message to display on error.</param>
abstract notOk: value: 'T * ?message: string -> unit
/// <summary>Asserts non-strict equality (==) of actual and expected.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract equal: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Asserts non-strict inequality (!=) of actual and expected.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract notEqual: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Asserts strict equality (===) of actual and expected.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract strictEqual: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Asserts strict inequality (!==) of actual and expected.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract notStrictEqual: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Asserts that actual is deeply equal to expected.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract deepEqual: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Asserts that actual is not deeply equal to expected.</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract notDeepEqual: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Alias to deepEqual</summary>
/// <param name="actual">Actual value.</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract deepStrictEqual: actual: 'T * expected: 'T * ?message: string -> unit
/// <summary>Asserts valueToCheck is strictly greater than (>) valueToBeAbove.</summary>
/// <param name="valueToCheck">Actual value.</param>
/// <param name="valueToBeAbove">Minimum Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract isAbove: valueToCheck: float * valueToBeAbove: float * ?message: string -> unit
/// <summary>Asserts valueToCheck is greater than or equal to (>=) valueToBeAtLeast.</summary>
/// <param name="valueToCheck">Actual value.</param>
/// <param name="valueToBeAtLeast">Minimum Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract isAtLeast: valueToCheck: float * valueToBeAtLeast: float * ?message: string -> unit
/// <summary>Asserts valueToCheck is strictly less than (<) valueToBeBelow.</summary>
/// <param name="valueToCheck">Actual value.</param>
/// <param name="valueToBeBelow">Minimum Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract isBelow: valueToCheck: float * valueToBeBelow: float * ?message: string -> unit
/// <summary>Asserts valueToCheck is less than or equal to (<=) valueToBeAtMost.</summary>
/// <param name="valueToCheck">Actual value.</param>
/// <param name="valueToBeAtMost">Minimum Potential expected value.</param>
/// <param name="message">Message to display on error.</param>
abstract isAtMost: valueToCheck: float * valueToBeAtMost: float * ?message: string -> unit
/// <summary>Asserts that value is true.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isTrue: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is false.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isFalse: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not true.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotTrue: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not false.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotFalse: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is null.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNull: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not null.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotNull: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is NaN.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNaN: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not NaN.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotNaN: value: 'T * ?message: string -> unit
/// <summary>Asserts that the target is neither null nor undefined.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract exists: value: 'T * ?message: string -> unit
/// <summary>Asserts that the target is either null or undefined.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract notExists: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is undefined.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isUndefined: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not undefined.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isDefined: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is a function.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isFunction: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not a function.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotFunction: value: 'T * ?message: string -> unit
/// <summary>
/// Asserts that value is an object of type 'Object'
/// (as revealed by Object.prototype.toString).
/// </summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
/// <remarks>The assertion does not match subclassed objects.</remarks>
abstract isObject: value: 'T * ?message: string -> unit
/// <summary>
/// Asserts that value is not an object of type 'Object'
/// (as revealed by Object.prototype.toString).
/// </summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotObject: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is an array.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isArray: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not an array.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotArray: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is a string.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isString: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not a string.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotString: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is a number.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNumber: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not a number.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotNumber: value: 'T * ?message: string -> unit
/// <summary>
/// Asserts that value is a finite number.
/// Unlike <c>.isNumber</c>, this will fail for <c>NaN</c> and <c>Infinity</c>.
/// </summary>
/// <param name="value">Actual value</param>
/// <param name="message">Message to display on error.</param>
abstract isFinite: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is a boolean.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isBoolean: value: 'T * ?message: string -> unit
/// <summary>Asserts that value is not a boolean.</summary>
/// <param name="value">Actual value.</param>
/// <param name="message">Message to display on error.</param>
abstract isNotBoolean: value: 'T * ?message: string -> unit
/// <summary>Asserts that value's type is name, as determined by Object.prototype.toString.</summary>
/// <param name="value">Actual value.</param>
/// <param name="name">Potential expected type name of value.</param>
/// <param name="message">Message to display on error.</param>
abstract typeOf: value: 'T * name: string * ?message: string -> unit
/// <summary>Asserts that value's type is not name, as determined by Object.prototype.toString.</summary>
/// <param name="value">Actual value.</param>
/// <param name="name">Potential expected type name of value.</param>
/// <param name="message">Message to display on error.</param>
abstract notTypeOf: value: 'T * name: string * ?message: string -> unit
/// <summary>Asserts that value is an instance of constructor.</summary>
/// <param name="value">Actual value.</param>
/// <param name="constructor">Potential expected contructor of value.</param>
/// <param name="message">Message to display on error.</param>
abstract instanceOf: value: 'T * constructor: Function * ?message: string -> unit
/// <summary>Asserts that value is not an instance of constructor.</summary>
/// <param name="value">Actual value.</param>
/// <param name="constructor">Potential expected contructor of value.</param>
/// <param name="message">Message to display on error.</param>
abstract notInstanceOf: value: 'T * ``type``: Function * ?message: string -> unit
/// <summary>Asserts that haystack includes needle.</summary>
/// <param name="haystack">Container string.</param>
/// <param name="needle">Potential substring of haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract ``include``: haystack: string * needle: string * ?message: string -> unit
/// <summary>Asserts that haystack includes needle.</summary>
/// <param name="haystack">Container array, set or map.</param>
/// <param name="needle">Potential value contained in haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract ``include``: haystack: U3<ResizeArray<'T>, ReadonlySet<'T>, ReadonlyMap<obj option, 'T>> * needle: 'T * ?message: string -> unit
/// <summary>Asserts that haystack includes needle.</summary>
/// <param name="haystack">WeakSet container.</param>
/// <param name="needle">Potential value contained in haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract ``include``: haystack: WeakSet<'T> * needle: 'T * ?message: string -> unit when 'T :> obj
/// <summary>Asserts that haystack includes needle.</summary>
/// <param name="haystack">Object.</param>
/// <param name="needle">Potential subset of the haystack's properties.</param>
/// <param name="message">Message to display on error.</param>
abstract ``include``: haystack: 'T * needle: obj * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle.</summary>
/// <param name="haystack">Container string.</param>
/// <param name="needle">Potential substring of haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract notInclude: haystack: string * needle: string * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle.</summary>
/// <param name="haystack">Container array, set or map.</param>
/// <param name="needle">Potential value contained in haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract notInclude: haystack: U3<ResizeArray<'T>, ReadonlySet<'T>, ReadonlyMap<obj option, 'T>> * needle: 'T * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle.</summary>
/// <param name="haystack">WeakSet container.</param>
/// <param name="needle">Potential value contained in haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract notInclude: haystack: WeakSet<'T> * needle: 'T * ?message: string -> unit when 'T :> obj
/// <summary>Asserts that haystack does not includes needle.</summary>
/// <param name="haystack">Object.</param>
/// <param name="needle">Potential subset of the haystack's properties.</param>
/// <param name="message">Message to display on error.</param>
abstract notInclude: haystack: 'T * needle: obj * ?message: string -> unit
/// <summary>Asserts that haystack includes needle. Deep equality is used.</summary>
/// <param name="haystack">Container string.</param>
/// <param name="needle">Potential substring of haystack.</param>
/// <param name="message">Message to display on error.</param>
[<Obsolete("Does not have any effect on string. Use {@link Assertinclude } instead.")>]
abstract deepInclude: haystack: string * needle: string * ?message: string -> unit
/// <summary>Asserts that haystack includes needle. Deep equality is used.</summary>
/// <param name="haystack">Container array, set or map.</param>
/// <param name="needle">Potential value contained in haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract deepInclude: haystack: U3<ResizeArray<'T>, ReadonlySet<'T>, ReadonlyMap<obj option, 'T>> * needle: 'T * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle.</summary>
/// <param name="haystack">Object.</param>
/// <param name="needle">Potential subset of the haystack's properties.</param>
/// <param name="message">Message to display on error.</param>
abstract deepInclude: haystack: 'T * needle: obj * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle. Deep equality is used.</summary>
/// <param name="haystack">Container string.</param>
/// <param name="needle">Potential substring of haystack.</param>
/// <param name="message">Message to display on error.</param>
[<Obsolete("Does not have any effect on string. Use {@link AssertnotInclude } instead.")>]
abstract notDeepInclude: haystack: string * needle: string * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle. Deep equality is used.</summary>
/// <param name="haystack">Container array, set or map.</param>
/// <param name="needle">Potential value contained in haystack.</param>
/// <param name="message">Message to display on error.</param>
abstract notDeepInclude: haystack: U3<ResizeArray<'T>, ReadonlySet<'T>, ReadonlyMap<obj option, 'T>> * needle: 'T * ?message: string -> unit
/// <summary>Asserts that haystack does not includes needle. Deep equality is used.</summary>
/// <param name="haystack">Object.</param>
/// <param name="needle">Potential subset of the haystack's properties.</param>
/// <param name="message">Message to display on error.</param>
abstract notDeepInclude: haystack: 'T * needle: obj * ?message: string -> unit
/// <summary>
/// Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object.
///
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’.
/// Can be used to assert the inclusion of a subset of properties in an object.
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.
/// </summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract nestedInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>
/// Asserts that ‘haystack’ does not include ‘needle’. Can be used to assert the absence of a subset of properties in an object.
///
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’.
/// Can be used to assert the inclusion of a subset of properties in an object.
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.
/// </summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract notNestedInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>
/// Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while checking for deep equality
///
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’.
/// Can be used to assert the inclusion of a subset of properties in an object.
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.
/// </summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract deepNestedInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>
/// Asserts that ‘haystack’ does not include ‘needle’. Can be used to assert the absence of a subset of properties in an object while checking for deep equality.
///
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’.
/// Can be used to assert the inclusion of a subset of properties in an object.
/// Enables the use of dot- and bracket-notation for referencing nested properties.
/// ‘[]’ and ‘.’ in property names can be escaped using double backslashes.
/// </summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract notDeepNestedInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while ignoring inherited properties.</summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract ownInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the absence of a subset of properties in an object while ignoring inherited properties.</summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract notOwnInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while ignoring inherited properties and checking for deep</summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract deepOwnInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the absence of a subset of properties in an object while ignoring inherited properties and checking for deep equality.</summary>
/// <param name="haystack" />
/// <param name="needle" />
/// <param name="message">Message to display on error.</param>
abstract notDeepOwnInclude: haystack: obj option * needle: obj option * ?message: string -> unit
/// <summary>Asserts that value matches the regular expression regexp.</summary>
/// <param name="value">Actual value.</param>
/// <param name="regexp">Potential match of value.</param>
/// <param name="message">Message to display on error.</param>
abstract ``match``: value: string * regexp: RegExp * ?message: string -> unit
/// <summary>Asserts that value does not match the regular expression regexp.</summary>
/// <param name="value">Actual value.</param>
/// <param name="regexp">Potential match of value.</param>
/// <param name="message">Message to display on error.</param>
abstract notMatch: expected: obj option * regexp: RegExp * ?message: string -> unit
/// <summary>Asserts that object has a property named by property.</summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="message">Message to display on error.</param>
abstract property: object: 'T * property: string * ?message: string -> unit
/// <summary>Asserts that object has a property named by property.</summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="message">Message to display on error.</param>
abstract notProperty: object: 'T * property: string * ?message: string -> unit
/// <summary>
/// Asserts that object has a property named by property, which can be a string
/// using dot- and bracket-notation for deep reference.
/// </summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="message">Message to display on error.</param>
abstract deepProperty: object: 'T * property: string * ?message: string -> unit
/// <summary>
/// Asserts that object does not have a property named by property, which can be a
/// string using dot- and bracket-notation for deep reference.
/// </summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="message">Message to display on error.</param>
abstract notDeepProperty: object: 'T * property: string * ?message: string -> unit
/// <summary>Asserts that object has a property named by property with value given by value.</summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="value">Potential expected property value.</param>
/// <param name="message">Message to display on error.</param>
abstract propertyVal: object: 'T * property: string * value: 'V * ?message: string -> unit
/// <summary>Asserts that object has a property named by property with value given by value.</summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="value">Potential expected property value.</param>
/// <param name="message">Message to display on error.</param>
abstract notPropertyVal: object: 'T * property: string * value: 'V * ?message: string -> unit
/// <summary>
/// Asserts that object has a property named by property, which can be a string
/// using dot- and bracket-notation for deep reference.
/// </summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="value">Potential expected property value.</param>
/// <param name="message">Message to display on error.</param>
abstract deepPropertyVal: object: 'T * property: string * value: 'V * ?message: string -> unit
/// <summary>
/// Asserts that object does not have a property named by property, which can be a
/// string using dot- and bracket-notation for deep reference.
/// </summary>
/// <param name="object">Container object.</param>
/// <param name="property">Potential contained property of object.</param>
/// <param name="value">Potential expected property value.</param>
/// <param name="message">Message to display on error.</param>
abstract notDeepPropertyVal: object: 'T * property: string * value: 'V * ?message: string -> unit
/// <summary>Asserts that object has a length property with the expected value.</summary>
/// <param name="object">Container object.</param>
/// <param name="length">Potential expected length of object.</param>
/// <param name="message">Message to display on error.</param>
abstract lengthOf: object: 'T * length: float * ?message: string -> unit
/// <summary>Asserts that fn will throw an error.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="message">Message to display on error.</param>
abstract throw: fn: (unit -> unit) * ?message: string -> unit
/// <summary>Asserts that function will throw an error with message matching regexp.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="regExp">Potential expected message match.</param>
/// <param name="message">Message to display on error.</param>
abstract throw: fn: (unit -> unit) * regExp: RegExp -> unit
/// <summary>Asserts that function will throw an error that is an instance of constructor.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract throw: fn: (unit -> unit) * constructor: ErrorConstructor * ?message: string -> unit
/// <summary>
/// Asserts that function will throw an error that is an instance of constructor
/// and an error with message matching regexp.
/// </summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract throw: fn: (unit -> unit) * constructor: ErrorConstructor * regExp: RegExp -> unit
/// <summary>Asserts that fn will throw an error.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="message">Message to display on error.</param>
abstract throws: fn: (unit -> unit) * ?message: string -> unit
/// <summary>Asserts that function will throw an error with message matching regexp.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="errType">Potential expected message match or error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract throws: fn: (unit -> unit) * errType: U2<RegExp, ErrorConstructor> * ?message: string -> unit
/// <summary>
/// Asserts that function will throw an error that is an instance of constructor
/// and an error with message matching regexp.
/// </summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract throws: fn: (unit -> unit) * constructor: ErrorConstructor * regExp: RegExp -> unit
/// <summary>Asserts that fn will throw an error.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="message">Message to display on error.</param>
abstract Throw: fn: (unit -> unit) * ?message: string -> unit
/// <summary>Asserts that function will throw an error with message matching regexp.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="regExp">Potential expected message match.</param>
/// <param name="message">Message to display on error.</param>
abstract Throw: fn: (unit -> unit) * regExp: RegExp -> unit
/// <summary>Asserts that function will throw an error that is an instance of constructor.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract Throw: fn: (unit -> unit) * constructor: ErrorConstructor * ?message: string -> unit
/// <summary>
/// Asserts that function will throw an error that is an instance of constructor
/// and an error with message matching regexp.
/// </summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract Throw: fn: (unit -> unit) * constructor: ErrorConstructor * regExp: RegExp -> unit
/// <summary>Asserts that fn will not throw an error.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="message">Message to display on error.</param>
abstract doesNotThrow: fn: (unit -> unit) * ?message: string -> unit
/// <summary>Asserts that function will throw an error with message matching regexp.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="regExp">Potential expected message match.</param>
/// <param name="message">Message to display on error.</param>
abstract doesNotThrow: fn: (unit -> unit) * regExp: RegExp -> unit
/// <summary>Asserts that function will throw an error that is an instance of constructor.</summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract doesNotThrow: fn: (unit -> unit) * constructor: ErrorConstructor * ?message: string -> unit
/// <summary>
/// Asserts that function will throw an error that is an instance of constructor
/// and an error with message matching regexp.
/// </summary>
/// <param name="fn">Function that may throw.</param>
/// <param name="constructor">Potential expected error constructor.</param>
/// <param name="message">Message to display on error.</param>
abstract doesNotThrow: fn: (unit -> unit) * constructor: ErrorConstructor * regExp: RegExp -> unit
/// <summary>Compares two values using operator.</summary>
/// <param name="val1">Left value during comparison.</param>
/// <param name="operator">Comparison operator.</param>
/// <param name="val2">Right value during comparison.</param>
/// <param name="message">Message to display on error.</param>
abstract operator: val1: OperatorComparable * operator: Operator * val2: OperatorComparable * ?message: string -> unit
/// <summary>Asserts that the target is equal to expected, to within a +/- delta range.</summary>
/// <param name="actual">Actual value</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="delta">Maximum differenced between values.</param>
/// <param name="message">Message to display on error.</param>
abstract closeTo: actual: float * expected: float * delta: float * ?message: string -> unit
/// <summary>Asserts that the target is equal to expected, to within a +/- delta range.</summary>
/// <param name="actual">Actual value</param>
/// <param name="expected">Potential expected value.</param>
/// <param name="delta">Maximum differenced between values.</param>
/// <param name="message">Message to display on error.</param>
abstract approximately: act: float * exp: float * delta: float * ?message: string -> unit
/// <summary>Asserts that set1 and set2 have the same members. Order is not take into account.</summary>
/// <param name="set1">Actual set of values.</param>
/// <param name="set2">Potential expected set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract sameMembers: set1: ResizeArray<'T> * set2: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that set1 and set2 have the same members using deep equality checking.
/// Order is not take into account.
/// </summary>
/// <param name="set1">Actual set of values.</param>
/// <param name="set2">Potential expected set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract sameDeepMembers: set1: ResizeArray<'T> * set2: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that set1 and set2 have the same members in the same order.
/// Uses a strict equality check (===).
/// </summary>
/// <param name="set1">Actual set of values.</param>
/// <param name="set2">Potential expected set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract sameOrderedMembers: set1: ResizeArray<'T> * set2: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that set1 and set2 don’t have the same members in the same order.
/// Uses a strict equality check (===).
/// </summary>
/// <param name="set1">Actual set of values.</param>
/// <param name="set2">Potential expected set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract notSameOrderedMembers: set1: ResizeArray<'T> * set2: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that set1 and set2 have the same members in the same order.
/// Uses a deep equality check.
/// </summary>
/// <param name="set1">Actual set of values.</param>
/// <param name="set2">Potential expected set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract sameDeepOrderedMembers: set1: ResizeArray<'T> * set2: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that set1 and set2 don’t have the same members in the same order.
/// Uses a deep equality check.
/// </summary>
/// <param name="set1">Actual set of values.</param>
/// <param name="set2">Potential expected set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract notSameDeepOrderedMembers: set1: ResizeArray<'T> * set2: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that subset is included in superset in the same order beginning with the first element in superset.
/// Uses a strict equality check (===).
/// </summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract includeOrderedMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that subset isn’t included in superset in the same order beginning with the first element in superset.
/// Uses a strict equality check (===).
/// </summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract notIncludeOrderedMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that subset is included in superset in the same order beginning with the first element in superset.
/// Uses a deep equality check.
/// </summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract includeDeepOrderedMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that subset isn’t included in superset in the same order beginning with the first element in superset.
/// Uses a deep equality check.
/// </summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract notIncludeDeepOrderedMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>Asserts that subset is included in superset. Order is not take into account.</summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract includeMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that subset isn’t included in superset in any order.
/// Uses a strict equality check (===). Duplicates are ignored.
/// </summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential not contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract notIncludeMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>
/// Asserts that subset is included in superset using deep equality checking.
/// Order is not take into account.
/// </summary>
/// <param name="superset">Actual set of values.</param>
/// <param name="subset">Potential contained set of values.</param>
/// <param name="message">Message to display on error.</param>
abstract includeDeepMembers: superset: ResizeArray<'T> * subset: ResizeArray<'T> * ?message: string -> unit
/// <summary>Asserts that non-object, non-array value inList appears in the flat array list.</summary>
/// <param name="inList">Value expected to be in the list.</param>
/// <param name="list">List of values.</param>
/// <param name="message">Message to display on error.</param>
abstract oneOf: inList: 'T * list: ResizeArray<'T> * ?message: string -> unit
/// <summary>Asserts that a function changes the value of a property.</summary>
/// <param name="modifier">Function to run.</param>
/// <param name="object">Container object.</param>
/// <param name="property">Property of object expected to be modified.</param>
/// <param name="message">Message to display on error.</param>
abstract changes: modifier: Function * object: 'T * property: string * ?message: string -> unit
/// <summary>Asserts that a function does not change the value of a property.</summary>
/// <param name="modifier">Function to run.</param>
/// <param name="object">Container object.</param>
/// <param name="property">Property of object expected not to be modified.</param>
/// <param name="message">Message to display on error.</param>
abstract doesNotChange: modifier: Function * object: 'T * property: string * ?message: string -> unit
/// <summary>Asserts that a function increases an object property.</summary>
/// <param name="modifier">Function to run.</param>