You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lettests_profile_object_is_valid= testList "profile object is valid"[
10
+
testCase "Id"<|fun _ -> Expect.equal default_constructor.Id "id""mandatory field Id was not correct"
11
+
testCase "SchemaType"<|fun _ -> Expect.equal default_constructor.SchemaType "schema.org/Dataset""mandatory field SchemaType was not correct"
12
+
testCase "AdditionalType"<|fun _ -> Expect.equal default_constructor.AdditionalType (Some "Assay")"optional field AdditionalType was not correct"
13
+
testCase "Properties"<|fun _ -> Expect.isEmpty default_constructor.Properties "Dynamic properties were not empty"
14
+
15
+
// default constructors are missing mandatory fields from the profile. This is by design.
16
+
testCase "missing identifier"<|fun _ -> Expect.throws (fun _ -> default_constructor.GetValue("identifier")|> ignore)"mandatory profile field identifier was present althoughit was expected to be missing"
lettests_profile_object_is_valid= testList "profile object is valid"[
10
+
testCase "Id"<|fun _ -> Expect.equal default_constructor.Id "id""mandatory field Id was not correct"
11
+
testCase "SchemaType"<|fun _ -> Expect.equal default_constructor.SchemaType "schema.org/Dataset""mandatory field SchemaType was not correct"
12
+
testCase "AdditionalType"<|fun _ -> Expect.equal default_constructor.AdditionalType (Some "Investigation")"mandatory field AdditionalType was not correct"
13
+
testCase "Properties"<|fun _ -> Expect.isEmpty default_constructor.Properties "Dynamic properties were not empty"
14
+
15
+
// default constructors are missing mandatory fields from the profile. This is by design.
16
+
testCase "missing identifier"<|fun _ -> Expect.throws (fun _ -> default_constructor.GetValue("identifier")|> ignore)"mandatory profile field identifier was present althoughit was expected to be missing"
0 commit comments