public JsonSerializationInteropTest()
        {
            this.Serializer = JsonSerializerImplDllLoader.TryGetJsonSerializerImpl();
            if (this.Serializer == null)
            {
                throw new DllNotFoundException("SerializerUnitTests..ctor(): Call to JsonSerializerImplDllLoader.TryGetJsonSerializerImpl() failed.");
            }

            this.random = new Random((int)DateTime.Now.Ticks);

            this.dataDir = nativeExeBinDir;

            // If WinFabric_TestName pertains to this test and DataRoot is set then use WinFabric_TestCaseDataRoot.
            if (Environment.ExpandEnvironmentVariables(TestCaseNameEnvVar).ToLower().Contains(TestDllNamePrefix.ToLower()))
            {
                string testCaseDataDir = Environment.ExpandEnvironmentVariables(TestCaseDataRootEnvVar);
                if (Directory.Exists(testCaseDataDir))
                {
                    this.dataDir = testCaseDataDir;
                }
            }

            this.jsonFile1ManagedPath = Path.GetFullPath(Path.Combine(dataDir, jsonFile1Name));
            this.jsonFile2NativePath  = Path.GetFullPath(Path.Combine(dataDir, jsonFile2Name));
        }
        public SerializerUnitTests()
        {
            this.Serializer = JsonSerializerImplDllLoader.TryGetJsonSerializerImpl();
            if (this.Serializer == null)
            {
                throw new DllNotFoundException("SerializerUnitTests..ctor(): Call to JsonSerializerImplDllLoader.TryGetJsonSerializerImpl() failed.");
            }

            this.random = new Random((int)DateTime.Now.Ticks);
        }