@Codeproject Admins: Sorry, I did not see the Button "I solved it myself". So here I go again:
Well, it's a kind of funny answering my own question. But I found the solution. Maybe it was a bit to easy or it is because I'm still a kind of unexperienced in unit testing.
[TestMethod()]
[DeploymentItem("TestClient.exe")]
public void DoSomethingTest()
{
FooDummy_Accessor target = new FooDummy_Accessor();
object data = null;
target.DoSomething(data);
Assert.AreEqual(1, target.m_struct.A);
Assert.AreEqual(2, target.m_struct.B);
FooStruct st = (FooStruct)target.m_struct.Target;
sbyte[] expectedData = { 1, 2, 3, 4, 5 };
int length = expectedData.Length;
unsafe
{
for (int i = 0; i < length; i++)
{
Assert.AreEqual(expectedData[i], st.Data[i]);
}
}
}