Exemplo n.º 1
0
        public void Test_WhereUsed()
        {
            RoleType rt = new RoleType("uri", "id", "schemaFile");

            rt.AddLink("link:one");
            rt.AddLink("link:two");
            rt.AddLink("link:Three");

            Assert.IsTrue(rt.UsedIn("one"));
            Assert.IsTrue(rt.UsedIn("two"));
            Assert.IsFalse(rt.UsedIn("seven"));
        }
Exemplo n.º 2
0
        public void Test_WhereUsed()
        {
            RoleType rt = new RoleType( "uri", "id", "schemaFile" );

            rt.AddLink( "link:one" );
            rt.AddLink( "link:two" );
            rt.AddLink( "link:Three" );

            Assert.IsTrue( rt.UsedIn( "one" ) );
            Assert.IsTrue( rt.UsedIn( "two" ) );
            Assert.IsFalse( rt.UsedIn( "seven" ) );
        }