public void CannotInjectIndexerPropertyNameIntoFaultContract() { NameValueCollection attributes = new NameValueCollection(); attributes.Add("Message", "{Item}"); FaultContractExceptionHandler instance = new FaultContractExceptionHandler(typeof(MockFaultContract), attributes); Exception exception = new ExceptionWithIndexer("MyException"); FaultContractWrapperException result = (FaultContractWrapperException)instance.HandleException(exception, Guid.NewGuid()); Assert.IsTrue(string.IsNullOrEmpty(((MockFaultContract)result.FaultContract).Message)); }