0
기대 오류가 발생했습니다. 그리고 클라이언트 서비스도 예외를 throw하지만 예상 한 방식은 아닙니다. 나는 "System.ServiceModel.FaultException"그것을 기대하지만, 나에게이 제공 :단위 테스트이 내 단위 테스트입니다 System.ServiceModel.FaultException
나는 "ExpectedException"그래서 이것은 단위 테스트가 제대로 예상을 제외하고 통과를 넣어 않는 것을Test method RepoUnitTest_ExpectError threw exception
System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]],
but exception System.ServiceModel.FaultException was expected.
확실하지.