15 instantiations of FaultException
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
719throw new FaultException<ArgumentException>(new ArgumentException()); 753var faultObj = new FaultException<CustomMessage>(new CustomMessage(), "custom fault reason", new FaultCode("custom fault code")); 781var fault = new FaultException<FaultDetail>(
System.ServiceModel.Primitives.Tests (11)
ServiceModel\FaultExceptionTest.cs (11)
21var exception = new FaultException<FaultDetail>(detail, reason); 31var exception2 = new FaultException<FaultDetail>(nullDetail, nullReason); 49dcs.WriteObject(ms, new FaultException<FaultDetail>(new FaultDetail("Fault Message"))); 109var exception = new FaultException<FaultDetail>(detail, reason, code); 119exception = new FaultException<FaultDetail> (null,(FaultReason)null,null); 134var exception = new FaultException<FaultDetail>(detail, reason); 142exception = new FaultException<FaultDetail>(null, string.Empty); 159var exception = new FaultException<FaultDetail>(detail, reason, code); 169exception = new FaultException<FaultDetail>(null, (string)null, null); 186var exception = new FaultException<FaultDetail>(detail, reason, code, action); 201exception = new FaultException<FaultDetail>(null, string.Empty, null, null);
UnitTests.Common (1)
TestTypes.cs (1)
707throw new FaultException<FaultDetail>(
38 references to FaultException
Client.ExpectedExceptions.IntegrationTests (8)
ExpectedExceptionTests.4.0.0.cs (4)
158FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() => 193FaultException<ExceptionDetail> exception = Assert.Throws<FaultException<ExceptionDetail>>(() =>
ExpectedExceptionTests.4.1.0.cs (4)
238FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() => 290FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() =>
Contract.Fault.IntegrationTests (12)
FaultExceptionTests.4.0.0.cs (12)
24FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() => 58FaultException<ExceptionDetail> exception = Assert.Throws<FaultException<ExceptionDetail>>(() => 91FaultException<int> thrownException = null; 101thrownException = Assert.Throws<FaultException<int>>(() => 130var exception = Assert.Throws<FaultException<FaultDetail>>(() => 167var exception = Assert.Throws<FaultException<FaultDetail2>>(() => 204var exception = Assert.Throws<FaultException<FaultDetail>>(() =>
Contract.XmlSerializer.IntegrationTests (2)
XmlSerializerFormatTest.cs (2)
87catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException) 109catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException)
dotnet-svcutil.xmlserializer.IntegrationTests (2)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (2)
87catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException) 109catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException)
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
750if (error is FaultException<ArgumentException>) 753var faultObj = new FaultException<CustomMessage>(new CustomMessage(), "custom fault reason", new FaultCode("custom fault code")); 781var fault = new FaultException<FaultDetail>(
System.ServiceModel (1)
netstandard.cs (1)
160[assembly: TypeForwardedTo(typeof(FaultException<>))]
System.ServiceModel.Primitives.Tests (10)
ServiceModel\FaultExceptionTest.cs (10)
21var exception = new FaultException<FaultDetail>(detail, reason); 31var exception2 = new FaultException<FaultDetail>(nullDetail, nullReason); 44var dcs = new DataContractSerializer(typeof(FaultException<FaultDetail>)); 53var faultException = (FaultException<FaultDetail>)dcs.ReadObject(ms); 109var exception = new FaultException<FaultDetail>(detail, reason, code); 134var exception = new FaultException<FaultDetail>(detail, reason); 159var exception = new FaultException<FaultDetail>(detail, reason, code); 186var exception = new FaultException<FaultDetail>(detail, reason, code, action); 192Assert.IsType<FaultException<FaultDetail>>(exception);