using
Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestProject1{
[System.Diagnostics.DebuggerStepThrough()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TestTools.UnitTestGeneration",
"1.0.0.0")]
internal class BaseAccessor {
protected Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject
m_privateObject;
protected BaseAccessor(object target, Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType
type) {
m_privateObject = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(target,
type);
}
protected BaseAccessor(Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType
type) :
this(null, type) {}
internal virtual object Target {
get {
return m_privateObject.Target;
}
}
public override string ToString() {
return this.Target.ToString();
}
public override bool Equals(object obj)
{
if (typeof(BaseAccessor).IsInstanceOfType(obj)) {
obj = ((BaseAccessor)(obj)).Target;
}
return this.Target.Equals(obj);
}
public override int GetHashCode() {
return this.Target.GetHashCode();
}
}
[System.Diagnostics.DebuggerStepThrough()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TestTools.UnitTestGeneration",
"1.0.0.0")]
internal class ClassLibrary1_DivisionClassAccessor : BaseAccessor
{
protected static Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType
m_privateType = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(global::ClassLibrary1.DivisionClass));
internal ClassLibrary1_DivisionClassAccessor(global::ClassLibrary1.DivisionClass
target) :
base(target, m_privateType) {}
internal int Divide_private(int numerator,
int denominator) {
object[] args = new object[] {
numerator,
denominator};
int ret = ((int)(m_privateObject.Invoke("Divide_private",
new System.Type[] {
typeof(int),
typeof(int)}, args)));
return ret;
}
}
} |