Skip to content

Commit f019aba

Browse files
committed
Add tests for all DynObj static methods
1 parent 3260cb6 commit f019aba

File tree

6 files changed

+685
-4
lines changed

6 files changed

+685
-4
lines changed

DynamicObj.sln

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "DynamicObject.Tests", "test
5353
EndProject
5454
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "DynamicObject.Immutable.Tests", "tests\DynamicObject.Immutable.Tests\DynamicObject.Immutable.Tests.fsproj", "{0F6A539F-82D2-4BDC-8BF0-F2D261873B92}"
5555
EndProject
56+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E0867002-4410-4E5F-BE71-46ABBE93ED07}"
57+
EndProject
5658
Global
5759
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5860
Debug|Any CPU = Debug|Any CPU
@@ -88,8 +90,10 @@ Global
8890
HideSolutionNode = FALSE
8991
EndGlobalSection
9092
GlobalSection(NestedProjects) = preSolution
93+
{B8BF1554-AAC3-434E-9502-FC83B43F3704} = {E0867002-4410-4E5F-BE71-46ABBE93ED07}
9194
{D62D0901-DB69-4C64-AC63-FBBBDCF6BC7D} = {988D804A-3A42-4E46-B233-B64F5C22524B}
9295
{C73AB951-91F2-4668-B2E0-B58298E5F664} = {39AA72A1-A628-481B-A2B5-94E2BD163061}
96+
{5E7DAC28-7752-4209-B3BB-6DCE54C28AD8} = {E0867002-4410-4E5F-BE71-46ABBE93ED07}
9397
{39192F2D-164B-4905-A7D7-5C5B0FFCD2BB} = {988D804A-3A42-4E46-B233-B64F5C22524B}
9498
{0F6A539F-82D2-4BDC-8BF0-F2D261873B92} = {988D804A-3A42-4E46-B233-B64F5C22524B}
9599
EndGlobalSection

build.cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@echo off
2-
cls
32

43
set PYTHONIOENCODING=utf-8
54

build/TestTasks.fs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,17 @@ module RunTests =
5151
|> Seq.iter dotnetRun
5252
}
5353

54-
let runTests = BuildTask.create "RunTests" [clean; build; RunTests.runTestsJs; (*RunTests.runTestsJsNative; *)RunTests.runTestsPy;(*RunTests.runTestsPyNative; *)RunTests.runTestsDotnet] {
55-
()
56-
}
54+
let runTests = BuildTask.createEmpty "RunTests" [
55+
clean;
56+
build;
57+
RunTests.runTestsPy;
58+
(*RunTests.runTestsPyNative; *)
59+
RunTests.runTestsJs;
60+
(*RunTests.runTestsJsNative; *)
61+
RunTests.runTestsDotnet
62+
63+
]
64+
5765

5866

5967
// to do: use this once we have actual tests

src/DynamicObj/DynObj.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
open System.Collections.Generic
44

5+
/// <summary>
6+
/// This module contains lots of API functions for DynamicObj.
7+
///
8+
/// These functions are not static methods on the DynamicObj type itself because that type is designed to be inherited from,
9+
/// and a lot of these functions might not make sense as static methods on inheriting types.
10+
/// </summary>
511
module DynObj =
612

713
/// <summary>

0 commit comments

Comments
 (0)