Exemplo n.º 1
0
        public void MLModelConverter_Gpu_ValidateMemberOfMember()
        {
            var gpu = TestUtils.TestUtils.GenerateGpu();

            gpu.AssertNotDefault();

            var gpuMLModel = TypeExtensions.CreateFilledMLObject <MLGpuModel, Gpu>(gpu);

            gpuMLModel.AssertEqual(gpu);
        }
Exemplo n.º 2
0
        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);
        }