/// <exception cref="System.Exception"></exception>
 public virtual void TestAccessWithoutAlias()
 {
     RemoveAlias();
     AliasesTestCase.ABar bar = (AliasesTestCase.ABar)((AliasesTestCase.ABar)RetrieveOnlyInstance
                                                           (typeof(AliasesTestCase.ABar)));
     AssertInstanceOK(bar);
 }
 private void AssertInstanceOK(AliasesTestCase.ABar bar)
 {
     Assert.AreEqual("foo", bar.foo);
     Assert.AreEqual("bar", bar.bar);
 }