Exemplo n.º 1
0
        public static void SmokeTest()
        {
            var sample  = new MinimalSample();
            var sample2 = new MinimalSample();

            sample.number = 42;
            WriteAndRead(ref sample, ref sample2, true);

            AssertEqual(sample2.number, sample.number);
        }
Exemplo n.º 2
0
        public static void SmokeTest()
        {
            var sample  = new MinimalSample();
            var sample2 = new MinimalSample();

            sample.number = 42;
            WriteAndRead(ref sample, ref sample2, true);

            if (sample2.number != sample.number)
            {
                throw new Exception("Values do not match");
            }
        }
Exemplo n.º 3
0
        public static void GetUsdObjectsTest()
        {
            var scene  = USD.NET.Scene.Create();
            var sample = new MinimalSample();

            sample.number = 45;
            sample.rel    = new USD.NET.Relationship("/Foo");

            scene.Write("/Foo", sample);
            PrintScene(scene);

            AssertTrue(scene.GetPrimAtPath("/Foo") != null);
            AssertTrue(scene.GetAttributeAtPath("/Foo.number") != null);
            AssertTrue(scene.GetRelationshipAtPath("/Foo.rel") != null);

            AssertTrue(scene.GetPrimAtPath("/Prim/Does/Not/Exist") == null);
            AssertTrue(scene.GetRelationshipAtPath("/Foo.number") == null);
            AssertTrue(scene.GetAttributeAtPath("/Foo.rel") == null);
        }