public void MLModelConverter_Gpu_ValidateMemberOfMember() { var gpu = TestUtils.TestUtils.GenerateGpu(); gpu.AssertNotDefault(); var gpuMLModel = TypeExtensions.CreateFilledMLObject <MLGpuModel, Gpu>(gpu); gpuMLModel.AssertEqual(gpu); }
public void MLModelConverter_PersonComputer_ValidateEmpty() { var personComputer = new PersonComputerStructureModel { Computer = TestUtils.TestUtils.GenerateEmptyComputer(), Person = TestUtils.TestUtils.GeneratePerson() }; var personComputerMLModel = TypeExtensions.CreateFilledMLObject <MLPersonComputerModel, PersonComputerStructureModel>( personComputer); personComputerMLModel.AssertEqual(personComputer); }