CmisCmdlets.Test.Commands.GetCmisPropertyTests.GetAllCommonCmisProperties C# (CSharp) Method

GetAllCommonCmisProperties() private method

private GetAllCommonCmisProperties ( ) : void
return void
        public void GetAllCommonCmisProperties()
        {
            var res = Shell.Execute(GetCmisPropertyCmd);
            var knownProperties = typeof(PropertyIds).GetFields(BindingFlags.Static |
                                                                BindingFlags.Public);
            Assert.That(res.Count, Is.EqualTo(1));
            var table = res[0] as IDictionary;
            Assert.That(table, Is.Not.Null);
            Assert.That(table.Count, Is.EqualTo(knownProperties.Length));
            foreach (var prop in knownProperties)
            {
                Assert.That(table[prop.Name], Is.EqualTo(prop.GetValue(null).ToString()));
            }
        }