Exemplo n.º 1
0
        private void AssertWmiFileFilter(Dictionary<string, string> result, WqlFileParameters wmiParameterName, string expectedValue)
        {
            string parameter = null;
            result.TryGetValue(wmiParameterName.ToString(), out parameter);
            if (parameter == null)
                Assert.Fail("Expected wmi parameter was not found: '{0}'", wmiParameterName.ToString());

            Assert.AreEqual(expectedValue, parameter);
        }
Exemplo n.º 2
0
        private void AssertWmiFileFilter(Dictionary <string, string> result, WqlFileParameters wmiParameterName, string expectedValue)
        {
            string parameter = null;

            result.TryGetValue(wmiParameterName.ToString(), out parameter);
            if (parameter == null)
            {
                Assert.Fail("Expected wmi parameter was not found: '{0}'", wmiParameterName.ToString());
            }

            Assert.AreEqual(expectedValue, parameter);
        }