Yes, I think you are a little confused.
Layout frames are designed to create "Mock" objects, which basically fake part of the functionality of your real objects, so you can pass them to methods during tests without addressing the problem of creating a real object for testing.
Let's look at a quick example.
Say you have a Save () method that takes a Doc object and returns a boolean success flag
public bool Save(Doc docToSave(){...}
, unit test , , "()". , .
Mocking "Doc" .
, - :
CreateMock of type Doc
SetReturnValue for method Doc.data = "some test data"
Doc, " ", ".data".
:
public void MyTest()
{
...
bool isSuccess = someClass.Save(dummyDoc);
...
}
, , "" ()()()() (")() (Access) dummyDoc, , .
, , , Doc, , , , . Mocking , , Doc.
- , . .
-, , , , , , /, , .