public void ProvideCompiledAttributeConstructor()
        {
            tlog.Debug(tag, $"ProvideCompiledAttributeConstructor START");
            ProvideCompiledAttribute p2 = new ProvideCompiledAttribute("testAttribute");

            p2 = null;
            tlog.Debug(tag, $"ProvideCompiledAttributeConstructor END (OK)");
            Assert.Pass("ProvideCompiledAttributeConstructor");
        }
示例#2
0
        public void ProvideCompiledAttributeConstructor()
        {
            tlog.Debug(tag, $"ProvideCompiledAttributeConstructor START");

            var testingTarget = new ProvideCompiledAttribute("testAttribute");

            Assert.IsNotNull(testingTarget, "null ProvideCompiledAttribute");
            Assert.IsInstanceOf <ProvideCompiledAttribute>(testingTarget, "Should return ProvideCompiledAttribute instance.");

            testingTarget = null;
            tlog.Debug(tag, $"ProvideCompiledAttributeConstructor END");
        }
示例#3
0
        public void ProvideCompiledAttributeCompiledVersion()
        {
            tlog.Debug(tag, $"ProvideCompiledAttributeCompiledVersion START");
            try
            {
                var testingTarget = new ProvideCompiledAttribute("testAttribute");
                Assert.IsNotNull(testingTarget, "null ProvideCompiledAttribute");
                Assert.IsInstanceOf <ProvideCompiledAttribute>(testingTarget, "Should return ProvideCompiledAttribute instance.");

                string result = testingTarget.CompiledVersion;
                tlog.Debug(tag, "CompiledVersion : " + result);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }
            tlog.Debug(tag, $"ProvideCompiledAttributeCompiledVersion END");
        }
 public void Destroy()
 {
     p1 = null;
     tlog.Info(tag, "Destroy() is called!");
 }
 public void Init()
 {
     p1 = new ProvideCompiledAttribute("mytestAttribute");
     tlog.Info(tag, "Init() is called!");
 }