public static IEnumerable <object[]> TestData()
        {
            StringBuilder str = new StringBuilder();

            foreach (MainBoardSignilTestData[] signil in MainBoardSignilTestDataGenerator.TestData())
            {
                foreach (CPUEnumerableTestData[] cPUEnumerable in CPUEnumerableTestDataGenerator.TestData())
                {
                    if (cPUEnumerable[0].E.FirstOrDefault() == null)
                    {
                        continue;
                    }
                    foreach (DiskDriveEnumerableTestData[] diskDriveEnumerable in DiskDriveEnumerableTestDataGenerator.TestData())
                    {
                        if (diskDriveEnumerable[0].E.FirstOrDefault() == null)
                        {
                            continue;
                        }
                        foreach (PhiloteTestData <IMainBoard>[] philote in PhiloteTestDataGenerator <IMainBoard> .TestData())
                        {
                            str.Clear();
                            str.Append($"{{\"MainBoardSignil\":{signil[0].SerializedTestData},\"CPUEnumerable\":{{{cPUEnumerable[0].E.FirstOrDefault().SerializedTestData}}},\"DiskDriveEnumerable\":{{{diskDriveEnumerable[0].E.FirstOrDefault().SerializedTestData}}},\"Philote\":{philote[0].SerializedTestData}}}");
                            yield return(new MainBoardTestData[] { new MainBoardTestData(new MainBoard(signil[0].ObjTestData, cPUEnumerable[0].E.Select(x => x.ObjTestData), diskDriveEnumerable[0].E.Select(x => x.ObjTestData), philote[0].ObjTestData), str.ToString()) });
                        }
                    }
                }
            }
        }
        public static IEnumerable <object[]> TestData()
        {
            StringBuilder str = new StringBuilder();

            foreach (PartitionFileSystemTestData[] partitionFileSystem in PartitionFileSystemTestDataGenerator.TestData())
            {
                foreach (UnitsNetInformationTestData[] information in UnitsNetInformationTestDataGenerator.TestData())
                {
                    IEnumerable <char> driveLetters = new List <char>()
                    {
                        'E'
                    };
                    foreach (PhiloteTestData <IPartitionInfoEx>[] philote in PhiloteTestDataGenerator <IPartitionInfoEx> .TestData())
                    {
                        var X = new PartitionInfoEx(partitionFileSystem[0].ObjTestData, information[0].ObjTestData, driveLetters, philote[0].ObjTestData);
                        str.Clear();
                        str.Append($"{{\"PartitionFileSystem\":{partitionFileSystem[0].SerializedTestData},\"Size\":{information[0].SerializedTestData},\"DriveLetters\":[\"E\"],\"Philote\":{philote[0].SerializedTestData}}}");

                        yield return(new PartitionInfoExTestData[] { new PartitionInfoExTestData(new PartitionInfoEx(partitionFileSystem[0].ObjTestData, information[0].ObjTestData, driveLetters, philote[0].ObjTestData), str.ToString()) });
                        //yield return new PartitionInfoExTestData[] { new PartitionInfoExTestData(new PartitionInfoEx(idpair.ID, idpair.ID2, new string[1] {"X"}, partitionFileSystem[0].ObjTestData, information[0].ObjTestData), str.ToString()) };
                    }
                }
                //}
            }
        }
Пример #3
0
        public static IEnumerable <object[]> TestData()
        {
            StringBuilder str = new StringBuilder();

            foreach (DiskDriveSignilTestData[] signil in DiskDriveSignilTestDataGenerator.TestData())
            {
                foreach (PhiloteTestData <IDiskDrive>[] philote in PhiloteTestDataGenerator <IDiskDrive> .TestData())
                {
                    str.Clear();
                    str.Append($"{{\"DiskDriveSignil\":{signil[0].SerializedTestData},\"DiskDriveNumber\":0,\"Philote\":{philote[0].SerializedTestData}}}");
                    yield return(new DiskDriveTestData[] { new DiskDriveTestData(new DiskDrive(signil[0].ObjTestData, 0, philote[0].ObjTestData), str.ToString()) });
                }
                //}
            }
        }
        public static IEnumerable <object[]> TestData()
        {
            StringBuilder str = new StringBuilder();

            foreach (CPUSignilTestData[] signil in CPUSignilTestDataGenerator.TestData())
            {
                foreach (PhiloteTestData <ICPU>[] philote in PhiloteTestDataGenerator <ICPU> .TestData())
                {
                    str.Clear();
                    str.Append($"{{\"CPUSignil\":{signil[0].SerializedTestData},\"Philote\":{philote[0].SerializedTestData}}}");
                    yield return(new CPUTestData[] { new CPUTestData(new CPU(signil[0].ObjTestData, philote[0].ObjTestData), str.ToString()) });
                    //yield return new CPUTestData[] { new CPUTestData(new CPU[2] { new CPU(signil[0].ObjTestData, id[0], timeBlock[0].ObjTestData), new CPU(signil[0].ObjTestData, id[1], timeBlock[0].ObjTestData) }, new string[2] { str[0].ToString(), String[1].ToString() }) };
                    //yield return new CPUTestData[] { new CPUTestData(new CPU(signil[0].ObjTestData, id[0], timeBlock[0].ObjTestData), str.ToString()) };
                }
            }
        }