Exemplo n.º 1
0
        public void GetVersionFromAbsentAttributes()
        {
            DocumentPackage package   = CreateDefaultDocumentPackage();
            EslClient       eslClient = CreateDefaultEslClient();

            Assert.AreEqual(false, eslClient.IsSdkVersionSetInPackageData(package));
        }
Exemplo n.º 2
0
        public void GetVersionFromNonEmptyAttributes()
        {
            DocumentPackage package = CreateDefaultDocumentPackage();

            package.Attributes = new DocumentPackageAttributes();
            package.Attributes.Append("key", "value");
            EslClient eslClient = CreateDefaultEslClient();

            Assert.AreEqual(false, eslClient.IsSdkVersionSetInPackageData(package));
        }
Exemplo n.º 3
0
        public void GetVersionWhenPresentInAttributes()
        {
            DocumentPackage package = CreateDefaultDocumentPackage();

            package.Attributes = new DocumentPackageAttributes();
            package.Attributes.Append("key", "value");
            package.Attributes.Append("sdk", "v???");
            EslClient eslClient = CreateDefaultEslClient();

            Assert.AreEqual(true, eslClient.IsSdkVersionSetInPackageData(package));
        }