내가 MSUnit 테스트 프레임 워크를 사용하여 개인 방법 이제반환 형식이 Void 인 개인 메서드의 어설트 단계를 수행하는 방법?
public class MyClass
{
private void SomeMethod(PrimaryAllocationDP packet)
{
........................
some code
........................
packet.AllocatedAgency = AgencyAllocated;
}
}
와 클래스가, 지금까지
[TestMethod]
public void TestAllocatedAgency()
{
var packet = new Fixture().Create<PrimaryAllocationDP>(); //used AutoFixture here
PrivateObject accessor = new PrivateObject(new MyClass());
accessor.Invoke("SomeMethod", packet); //Act
what will be the Assert???? Since it is void
}
무엇 어설 것
작성한 ???? 그것이 무효이므로, 어설 션을 작성하려면 어떻게해야합니까?도움말
필요