public void SetUp() { logSpy = new LogSpy(); logSpy.Attach(); logUtil = new InvocationLogUtil(); stringBuilder = new StringBuilder(); proxyGenerator = new ProxyGenerator(); aspect = new InvocationLoggerAspect(logUtil); proxy = proxyGenerator.CreateClassProxyWithTarget(new DummyObj(), aspect); }
public void GetPropertyValuesTest() { var newDummyObject = new DummyObj() { IntProperty = 2, StringProperty = "What", DoubleProperty = 4.1 }; var propertyValues = newDummyObject.GetPropertyValues(); Assert.AreEqual(propertyValues.Count, 3); TestPropertyExistence(propertyValues, "IntProperty", 2); TestPropertyExistence(propertyValues, "StringProperty", "What"); TestPropertyExistence(propertyValues, "DoubleProperty", 4.1); }
private void _read() { _mainData = new Main(m_io, this, m_root); _dummy = new DummyObj(m_io, this, m_root); }
private void _read() { _version = m_io.ReadU4le(); _mainData = new Main(m_io, this, m_root); _dummy = new DummyObj(m_io, this, m_root); }