Example #1
0
        public void CreateOSDocument_should_return_expected_result()
        {
            var result = ClientDocumentHelper.CreateOSDocument();

            var names = result.Names.ToList();

            names.Should().Contain("type");
        }
Example #2
0
        public void CreateOSDocument_with_args_should_return_expected_result(
            [Values("Windows", "Linux")]
            string osType,
            [Values("Windows 10", "macOS")]
            string osName,
            [Values("x86_32", "x86_64")]
            string architecture,
            [Values("8.1", "10.0")]
            string osVersion)
        {
            var result = ClientDocumentHelper.CreateOSDocument(osType, osName, architecture, osVersion);

            result.Should().Be($"{{ type : '{osType}', name : '{osName}', architecture : '{architecture}', version : '{osVersion}' }}");
        }