diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..850c8f2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,6 @@ +root = true + +[*] +end_of_line = crlf +indent_style = space +indent_size = 4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f23a44b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a98cbe..ecfcee0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,9 +4,9 @@ We invite you to become part of this project, regardless of your skill set or av Contribute ---------- -Contributions to Kafkanet are welcome. Here is how you can contribute to Kafkanet: -* [Submit bugs](https://github.com/Microsoft/Kafkanet/issues) and help us verify fixes -* [Submit pull requests](https://github.com/Microsoft/Kafkanet/pulls) for bug fixes and features and discuss existing proposals +Contributions to CSharpClient-for-Kafka are welcome. Here is how you can contribute to CSharpClient-for-Kafka: +* [Submit bugs](https://github.com/Microsoft/CSharpClient-for-Kafka/issues) and help us verify fixes +* [Submit pull requests](https://github.com/Microsoft/CSharpClient-for-Kafka/pulls) for bug fixes and features and discuss existing proposals Contribution License Agreement ------------------------------ diff --git a/LICENSE.txt b/LICENSE.txt index e93483f..de0b3cd 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Kafkanet +CSharpClient-for-Kafka Copyright © Microsoft Corporation All rights reserved. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 diff --git a/README.md b/README.md index dda76e2..2b174eb 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ -# Kafkanet +# CSharpClient-for-Kafka + +[![Join the chat at https://gitter.im/Microsoft/Kafkanet](https://badges.gitter.im/Microsoft/Kafkanet.svg)](https://gitter.im/Microsoft/Kafkanet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) .Net implementation of the Apache Kafka Protocol that provides basic functionality through Producer/Consumer classes. The project also offers balanced consumer implementation. -The project is a fork from ExactTarget's Kafka-net Client, tuned to serve Microsoft's Big Data needs. At Microsoft we run Kafka on multiple Windows Clusters with JBOD machines. -The client works with Kafka 0.8.1. +The project is a fork from ExactTarget's Kafka-net Client. ## Related documentation * [Kafka documentation](https://kafka.apache.org/documentation.html) * [Zookeeper documentation](https://cwiki.apache.org/confluence/display/ZOOKEEPER/Index) * [Kafka client protocol](https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol) -## Build Kafkanet -* Clone Kafkanet through ```git clone https://github.com/Microsoft/ChakraCore.git``` +## Build CSharpClient-for-Kafka +* Clone CSharpClient-for-Kafka through ```git clone https://github.com/Microsoft/CSharpClient-for-Kafka.git``` * Open `src\KafkaNETLibraryAndConsole.sln` in Visual Studio * Build Solution @@ -38,63 +39,70 @@ The client works with Kafka 0.8.1. The Producer can send one message or an entire batch to Kafka. When sending a batch you can send to multiple topics at once #### Producer Usage - var brokerConfig = new BrokerConfiguration() - { - BrokerId = this.brokerId, - Host = this.kafkaServerName, - Port = this.kafkaPort - }; - var config = new ProducerConfiguration(new List { brokerConfig }); - kafkaProducer = new Producer(config); - // here you construct you batch or single message object - var batch=ConstructBatch(); - kafkaProducer.Send(batch); +```c# +var brokerConfig = new BrokerConfiguration() +{ + BrokerId = this.brokerId, + Host = this.kafkaServerName, + Port = this.kafkaPort +}; +var config = new ProducerConfiguration(new List { brokerConfig }); +kafkaProducer = new Producer(config); +// here you construct your batch or a single message object +var batch=ConstructBatch(); +kafkaProducer.Send(batch); +``` + ### Simple Consumer The simple Consumer allows full control for retrieving data. You could instantiate a Consumer directly by providing a ConsumerConfiguration and then calling Fetch. -Kafkanet has a higher level wrapper around Consumer which allows consumer reuse and other benefits +CSharpClient-for-Kafka has a higher level wrapper around Consumer which allows consumer reuse and other benefits #### Consumer Usage - // create the Consumer higher level manager - var managerConfig = new KafkaSimpleManagerConfiguration() - { - FetchSize = FetchSize, - BufferSize = BufferSize, - Zookeeper = m_zookeeper - }; - m_consumerManager = new KafkaSimpleManager(managerConfig); - // get all available partitions for a topic through the manager - var allPartitions = m_consumerManager.GetTopicPartitionsFromZK(m_topic); - // Refresh metadata and grab a consumer for desired partitions - m_consumerManager.RefreshMetadata(0, m_consumerId, 0, m_topic, true); - var partitionConsumer = m_consumerManager.GetConsumer(m_topic, partitionId); +```c# +// create the Consumer higher level manager +var managerConfig = new KafkaSimpleManagerConfiguration() +{ + FetchSize = FetchSize, + BufferSize = BufferSize, + Zookeeper = m_zookeeper +}; +m_consumerManager = new KafkaSimpleManager(managerConfig); +// get all available partitions for a topic through the manager +var allPartitions = m_consumerManager.GetTopicPartitionsFromZK(m_topic); +// Refresh metadata and grab a consumer for desired partitions +m_consumerManager.RefreshMetadata(0, m_consumerId, 0, m_topic, true); +var partitionConsumer = m_consumerManager.GetConsumer(m_topic, partitionId); +``` ### Balanced Consumer The balanced consumer manages partition assignment for each instance in the same consumer group. Rebalance are triggered by zookeeper changes. #### Balanced Consumer Usage - // Here we create a balanced consumer on one consumer machine for consumerGroupId. All machines consuming for this group will get balanced together - ConsumerConfiguration config = new ConsumerConfiguration - { - AutoCommit = false, - GroupId = consumerGroupId - ConsumerId = uniqueConsumerId - MaxFetchBufferLength = m_BufferMaxNoOfMessages, - FetchSize = fetchSize, - AutoOffsetReset = OffsetRequest.LargestTime, - NumberOfTries = 20, - ZooKeeper = new ZooKeeperConfiguration(zookeeperString, 30000, 30000, 2000) - }; - var balancedConsumer = new ZookeeperConsumerConnector(config, true, m_ConsumerRebalanceHandler, m_ZKDisconnectHandler, m_ZKExpireHandler); - // grab streams for desired topics - var streams = m_ZooKeeperConsumerConnector.CreateMessageStreams(m_TopicMap, new DefaultDecoder()); - var KafkaMessageStream = streams[m_Topic][0]; - // start consuming stream - foreach (Message message in m_KafkaMessageStream.GetCancellable(cancellationTokenSource.Token)) - .... - +```c# +// Here we create a balanced consumer on one consumer machine for consumerGroupId. All machines consuming for this group will get balanced together +ConsumerConfiguration config = new ConsumerConfiguration +{ + AutoCommit = false, + GroupId = consumerGroupId + ConsumerId = uniqueConsumerId + MaxFetchBufferLength = m_BufferMaxNoOfMessages, + FetchSize = fetchSize, + AutoOffsetReset = OffsetRequest.LargestTime, + NumberOfTries = 20, + ZooKeeper = new ZooKeeperConfiguration(zookeeperString, 30000, 30000, 2000) +}; +var balancedConsumer = new ZookeeperConsumerConnector(config, true, m_ConsumerRebalanceHandler, m_ZKDisconnectHandler, m_ZKExpireHandler); +// grab streams for desired topics +var streams = m_ZooKeeperConsumerConnector.CreateMessageStreams(m_TopicMap, new DefaultDecoder()); +var KafkaMessageStream = streams[m_Topic][0]; +// start consuming stream +foreach (Message message in m_KafkaMessageStream.GetCancellable(cancellationTokenSource.Token)) +.... +``` + ## Contribute -Contributions to Kafkanet are welcome. Here is how you can contribute to Kafkanet: -* [Submit bugs](https://github.com/Microsoft/Kafkanet/issues) and help us verify fixes -* [Submit pull requests](https://github.com/Microsoft/Kafkanet/pulls) for bug fixes and features and discuss existing proposals \ No newline at end of file +Contributions to CSharpClient-for-Kafka are welcome. Here is how you can contribute to CSharpClient-for-Kafka: +* [Submit bugs](https://github.com/Microsoft/CSharpClient-for-Kafka/issues) and help us verify fixes +* [Submit pull requests](https://github.com/Microsoft/CSharpClient-for-Kafka/pulls) for bug fixes and features and discuss existing proposals diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt index 9cf970d..652a351 100644 --- a/THIRD-PARTY-NOTICES.txt +++ b/THIRD-PARTY-NOTICES.txt @@ -1,7 +1,7 @@ Kafkanet uses third party material from the projects listed below. The original copyright notice and the license under which Microsoft received such third party material are set forth below. Microsoft reserves all other rights not expressly granted, whether by implication, estoppel or otherwise. .NET Kafka Client -Copyright (c) salesforce.com, inc. (formerly Exact Target) +Copyright (c) salesforce.com, inc. (formerly ExactTarget) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/src/Kafka.Client.Tests/CompressionTests.cs b/src/Kafka.Client.Tests/CompressionTests.cs index 6710d0c..d6dba30 100644 --- a/src/Kafka.Client.Tests/CompressionTests.cs +++ b/src/Kafka.Client.Tests/CompressionTests.cs @@ -15,6 +15,8 @@ * limitations under the License. */ +using System; + namespace Kafka.Client.Tests { using FluentAssertions; @@ -34,7 +36,7 @@ public class CompressionTests public void CompressAndDecompressMessageUsingSnappyCompressionCodec() { var messageBytes = new byte[] { 1, 2, 3, 4, 5 }; - var message = new Message(messageBytes,CompressionCodecs.SnappyCompressionCodec); + var message = new Message(messageBytes, CompressionCodecs.SnappyCompressionCodec); Message compressedMsg = CompressionUtils.Compress(new List() { message }, CompressionCodecs.SnappyCompressionCodec, 0); var decompressed = CompressionUtils.Decompress(compressedMsg, 0); int i = 0; @@ -106,6 +108,33 @@ public void CompressAndDecompress3MessagesUsingDefaultCompressionCodec() Assert.AreEqual(3, i); } + [TestMethod] + [TestCategory(TestCategories.BVT)] + public void CompressV1MessagePutsV1MagicOnCompressedMessage() + { + byte[] messageBytes = new byte[] { 1, 2, 3, 4, 5 }; + Message message = new Message(DateTime.UtcNow, messageBytes, CompressionCodecs.DefaultCompressionCodec); + Message compressedMsg = CompressionUtils.Compress(new List() { message }, 0); + Assert.AreEqual(compressedMsg.Magic, 1); + } + + [TestMethod] + [TestCategory(TestCategories.BVT)] + public void DecompressWhenWrapperMessageProvidesLogWriteTimestamp() + { + byte[] messageBytes = new byte[] { 1, 2, 3, 4, 5 }; + Message message1 = new Message(100L, TimestampTypes.CreateTime, messageBytes, CompressionCodecs.DefaultCompressionCodec); + Message compressedMsg = CompressionUtils.Compress(new List() { message1 }, CompressionCodecs.DefaultCompressionCodec, 0, 123L); + + var decompressed = CompressionUtils.Decompress(compressedMsg, 0); + + foreach (var decompressedMessage in decompressed.Messages) + { + decompressedMessage.TimestampType.ShouldBeEquivalentTo(TimestampTypes.LogAppendTime); + decompressedMessage.Timestamp.ShouldBeEquivalentTo(123L); + } + } + [TestMethod] [TestCategory(TestCategories.BVT)] public void CreateCompressedBufferedMessageSet() diff --git a/src/Kafka.Client.Tests/Kafka.Client.Tests.csproj b/src/Kafka.Client.Tests/Kafka.Client.Tests.csproj index 0620959..4059926 100644 --- a/src/Kafka.Client.Tests/Kafka.Client.Tests.csproj +++ b/src/Kafka.Client.Tests/Kafka.Client.Tests.csproj @@ -73,16 +73,20 @@ false - + ..\packages\FluentAssertions.4.2.2\lib\net45\FluentAssertions.dll True - + ..\packages\FluentAssertions.4.2.2\lib\net45\FluentAssertions.Core.dll True + + ..\packages\log4net.2.0.3\lib\net40-full\log4net.dll + True + - + ..\packages\Moq.4.2.1510.2205\lib\net40\Moq.dll True @@ -92,6 +96,10 @@ + + False + ..\..\lib\ZooKeeperNet.dll + @@ -130,9 +138,7 @@ - - Designer - + @@ -140,12 +146,5 @@ - + \ No newline at end of file diff --git a/src/Kafka.Client.Tests/MessageSetTests.cs b/src/Kafka.Client.Tests/MessageSetTests.cs index 0366741..e32d4dc 100644 --- a/src/Kafka.Client.Tests/MessageSetTests.cs +++ b/src/Kafka.Client.Tests/MessageSetTests.cs @@ -32,11 +32,34 @@ public class MessageSetTests { [TestMethod] [TestCategory(TestCategories.BVT)] - public void BufferedMessageSetWriteToValidSequence() + public void BufferedMessageSetWriteToValidSequenceForV0Message() + { + RunMessageSetWriteValidSequestTest(false); + } + + [TestMethod] + [TestCategory(TestCategories.BVT)] + public void BufferedMessageSetWriteToValidSequenceForV1Message() + { + RunMessageSetWriteValidSequestTest(true); + } + + private void RunMessageSetWriteValidSequestTest(bool useV1Message) { byte[] messageBytes = { 1, 2, 3, 4, 5 }; - var msg1 = new Message(messageBytes) { Offset = 0 }; - var msg2 = new Message(messageBytes); + Message msg1, msg2; + + if (useV1Message) + { + msg1 = new Message(123L, TimestampTypes.CreateTime, messageBytes) {Offset = 0}; + msg2 = new Message(123L, TimestampTypes.CreateTime, messageBytes); + } + else + { + msg1 = new Message(messageBytes) {Offset = 0}; + msg2 = new Message(messageBytes); + } + msg2.Offset = 1; MessageSet messageSet = new BufferedMessageSet(new List() { msg1, msg2 }, 0); var ms = new MemoryStream(); @@ -48,10 +71,11 @@ public void BufferedMessageSetWriteToValidSequence() { reader.ReadInt64().Should().Be(i); // offset var msgLength = reader.ReadInt32(); // length - msgLength.Should().Be(Message.DefaultHeaderSize + msg1.PayloadSize); + msgLength.Should().Be((useV1Message ? Message.V1HeaderSize : Message.V0HeaderSize) + msg1.PayloadSize); reader.ReadUInt32().Should().Be(Crc32Hasher.ComputeCrcUint32(ms.GetBuffer(), baseOffset + 8 + 4 + 4, msgLength - 4)); - reader.ReadByte().Should().Be(0); // magic + reader.ReadByte().Should().Be(useV1Message ? (byte)1 : (byte)0); // magic reader.ReadByte().Should().Be(msg1.Attributes); + if (useV1Message) reader.ReadInt64().Should().Be(123L); // Timestamp reader.ReadInt32().Should().Be(-1); // key length reader.ReadInt32().Should().Be(messageBytes.Length); // message length reader.ReadBytes(messageBytes.Length).SequenceEqual(messageBytes).Should().BeTrue(); @@ -63,13 +87,28 @@ public void BufferedMessageSetWriteToValidSequence() [TestCategory(TestCategories.BVT)] public void SetSizeValid() { - byte[] messageBytes = new byte[] { 1, 2, 3, 4, 5 }; - Message msg1 = new Message(messageBytes); - Message msg2 = new Message(messageBytes); - MessageSet messageSet = new BufferedMessageSet(new List() { msg1, msg2 }, 0); - Assert.AreEqual( - 2 * (8 + 4 + Message.DefaultHeaderSize + messageBytes.Length), - messageSet.SetSize); + for (var i = 0; i < 2; i++) + { + var useV0Message = i == 1; + byte[] messageBytes = new byte[] {1, 2, 3, 4, 5}; + Message msg1, msg2; + + if (useV0Message) + { + msg1 = new Message(messageBytes); + msg2 = new Message(messageBytes); + } + else + { + msg1 = new Message(123L, TimestampTypes.CreateTime, messageBytes); + msg2 = new Message(123L, TimestampTypes.CreateTime, messageBytes); + } + + MessageSet messageSet = new BufferedMessageSet(new List() {msg1, msg2}, 0); + Assert.AreEqual( + 2 * (8 + 4 + (useV0Message ? Message.V0HeaderSize : Message.V1HeaderSize) + messageBytes.Length), + messageSet.SetSize); + } } } } diff --git a/src/Kafka.Client.Tests/MessageTests.cs b/src/Kafka.Client.Tests/MessageTests.cs index afc3197..5c55a71 100644 --- a/src/Kafka.Client.Tests/MessageTests.cs +++ b/src/Kafka.Client.Tests/MessageTests.cs @@ -34,21 +34,46 @@ namespace Kafka.Client.Tests public class MessageTests { /// - /// Ensure that the bytes returned from the message are in valid kafka sequence. + /// Ensure that the bytes returned from the message are in valid kafka sequence for v0 messages. /// [TestMethod] [TestCategory(TestCategories.BVT)] - public void GetBytesValidSequence() + public void GetBytesValidSequenceV0Message() + { + RunBytesValidSequenceTest(false); + } + + /// + /// Ensure that the bytes returned from the message are in valid kafka sequence for v1 messages. + /// + [TestMethod] + [TestCategory(TestCategories.BVT)] + public void GetBytesValidSequenceV1Message() + { + RunBytesValidSequenceTest(true); + } + + private void RunBytesValidSequenceTest(bool includeTimestampInMessage) { var payload = Encoding.UTF8.GetBytes("kafka"); - Message message = new Message(payload, CompressionCodecs.NoCompressionCodec); + Message message; + + if (includeTimestampInMessage) + { + message = new Message(123L, TimestampTypes.CreateTime, payload, CompressionCodecs.NoCompressionCodec); + } + else + { + message = new Message(payload, CompressionCodecs.NoCompressionCodec); + } MemoryStream ms = new MemoryStream(); message.WriteTo(ms); + Assert.AreEqual(message.Magic, includeTimestampInMessage ? 1 : 0); Assert.AreEqual(message.Size, ms.Length); - var crc = Crc32Hasher.ComputeCrcUint32(ms.GetBuffer(), 4, (int)(ms.Length - 4)); + var crc = Crc32Hasher.ComputeCrcUint32(ms.GetBuffer(), 4, (int) (ms.Length - 4)); // first 4 bytes = the crc using (var reader = new KafkaBinaryReader(ms)) @@ -59,7 +84,13 @@ public void GetBytesValidSequence() Assert.AreEqual(message.Magic, reader.ReadByte()); // attributes - Assert.AreEqual((byte)0, reader.ReadByte()); + Assert.AreEqual((byte) 0, reader.ReadByte()); + + if (includeTimestampInMessage) + { + // timestamp + Assert.AreEqual(123L, reader.ReadInt64()); + } // key size Assert.AreEqual(-1, reader.ReadInt32()); @@ -71,6 +102,5 @@ public void GetBytesValidSequence() payload.SequenceEqual(reader.ReadBytes(10)).Should().BeTrue(); } } - } } diff --git a/src/Kafka.Client.Tests/Request/FetchRequestTests.cs b/src/Kafka.Client.Tests/Request/FetchRequestTests.cs index 7659ae7..efa6762 100644 --- a/src/Kafka.Client.Tests/Request/FetchRequestTests.cs +++ b/src/Kafka.Client.Tests/Request/FetchRequestTests.cs @@ -43,6 +43,7 @@ public class FetchRequestTests [TestCategory(TestCategories.BVT)] public void GetBytesValidStructure() { + short fetchVersionId = 2; string topicName = "topic"; int correlationId = 1; string clientId = "TestClient"; @@ -54,7 +55,7 @@ public void GetBytesValidStructure() requestMap[topicName] = new List() {new PartitionFetchInfo(2, 4000, 777)}; - var request = new FetchRequest(correlationId, clientId, maxWait, minBytes, requestMap); + var request = new FetchRequest(fetchVersionId, correlationId, clientId, maxWait, minBytes, requestMap); int requestSize = 4 + //request size @@ -86,7 +87,7 @@ public void GetBytesValidStructure() BitConverter.ToInt16(BitWorks.ReverseBytes(bytes.Skip(4).Take(2).ToArray()), 0)); // next 2 bytes = the version id - Assert.AreEqual((short) FetchRequest.CurrentVersion, + Assert.AreEqual((short) fetchVersionId, BitConverter.ToInt16(BitWorks.ReverseBytes(bytes.Skip(6).Take(2).ToArray()), 0)); // next 2 bytes = the correlation id diff --git a/src/Kafka.Client.Tests/Request/ProducerRequestTests.cs b/src/Kafka.Client.Tests/Request/ProducerRequestTests.cs index 127daa1..350152f 100644 --- a/src/Kafka.Client.Tests/Request/ProducerRequestTests.cs +++ b/src/Kafka.Client.Tests/Request/ProducerRequestTests.cs @@ -46,6 +46,8 @@ public void GetBytesValidStructure() short requiredAcks = 5; int ackTimeout = 345; + short producerVersionId = 1; + var partition = 2; short error = 0; var payload = Encoding.UTF8.GetBytes("testMessage"); @@ -55,7 +57,7 @@ public void GetBytesValidStructure() var topicData = new TopicData(topicName, new List() { partitionData }); - var request = new ProducerRequest(correlationId, clientId, requiredAcks, ackTimeout, new List() { topicData }); + var request = new ProducerRequest(producerVersionId, correlationId, clientId, requiredAcks, ackTimeout, new List() { topicData }); int requestSize = 2 + //request type id 2 + //versionId @@ -86,7 +88,7 @@ public void GetBytesValidStructure() Assert.AreEqual((short)RequestTypes.Produce, BitConverter.ToInt16(BitWorks.ReverseBytes(bytes.Skip(4).Take(2).ToArray()), 0)); // next 2 bytes = the version id - Assert.AreEqual((short)ProducerRequest.CurrentVersion, BitConverter.ToInt16(BitWorks.ReverseBytes(bytes.Skip(6).Take(2).ToArray()), 0)); + Assert.AreEqual((short)producerVersionId, BitConverter.ToInt16(BitWorks.ReverseBytes(bytes.Skip(6).Take(2).ToArray()), 0)); // next 2 bytes = the correlation id Assert.AreEqual(correlationId, BitConverter.ToInt32(BitWorks.ReverseBytes(bytes.Skip(8).Take(4).ToArray()), 0)); diff --git a/src/Kafka.Client.Tests/Response/FetchResponseTest.cs b/src/Kafka.Client.Tests/Response/FetchResponseTest.cs index c7a72f0..7f43ee1 100644 --- a/src/Kafka.Client.Tests/Response/FetchResponseTest.cs +++ b/src/Kafka.Client.Tests/Response/FetchResponseTest.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +using Kafka.Client.Requests; + namespace Kafka.Client.Tests.Response { using FluentAssertions; @@ -19,32 +21,58 @@ public class FetchResponseTest { [TestMethod] [TestCategory(TestCategories.BVT)] - public void ShouldAbleToParseFetchResponse() + public void ShouldAbleToParseV0FetchResponse() + { + var stream = new MemoryStream(); + WriteTestFetchResponse(stream, 0); + var reader = new KafkaBinaryReader(stream); + var response = FetchResponse.ParserForVersion(0).ParseFrom(reader); + response.ThrottleTime.ShouldBeEquivalentTo(0); + var set = response.MessageSet("topic1", 111); + set.Should().NotBeNull(); + var messages = set.Messages.ToList(); + messages.Count().Should().Be(1); + messages.First().Payload.Length.Should().Be(100); + } + + [TestMethod] + [TestCategory(TestCategories.BVT)] + public void ShouldAbleToParseV1FetchResponse() { var stream = new MemoryStream(); + WriteTestFetchResponse(stream, 1); + var reader = new KafkaBinaryReader(stream); + var response = FetchResponse.ParserForVersion(1).ParseFrom(reader); + response.ThrottleTime.ShouldBeEquivalentTo(456); + var set = response.MessageSet("topic1", 111); + set.Should().NotBeNull(); + var messages = set.Messages.ToList(); + messages.Count().Should().Be(1); + messages.First().Payload.Length.Should().Be(100); + } + + private static void WriteTestFetchResponse(MemoryStream stream, int versionId) + { var writer = new KafkaBinaryWriter(stream); writer.Write(1); writer.Write(123); // correlation id + if (versionId > 0) // throttle time + { + writer.Write(456); + } writer.Write(1); // data count writer.WriteShortString("topic1"); writer.Write(1); // partition count writer.Write(111); //partition id - writer.Write((short)ErrorMapping.NoError); + writer.Write((short) ErrorMapping.NoError); writer.Write(1011L); // hw var messageStream = new MemoryStream(); var messageWriter = new KafkaBinaryWriter(messageStream); - new BufferedMessageSet(new List() { new Message(new byte[100]) }, 0).WriteTo(messageWriter); - writer.Write((int)messageStream.Length); - writer.Write(messageStream.GetBuffer(), 0, (int)messageStream.Length); + new BufferedMessageSet(new List() {new Message(new byte[100])}, 0).WriteTo(messageWriter); + writer.Write((int) messageStream.Length); + writer.Write(messageStream.GetBuffer(), 0, (int) messageStream.Length); stream.Seek(0, SeekOrigin.Begin); - var reader = new KafkaBinaryReader(stream); - var response = new FetchResponse.Parser().ParseFrom(reader); - var set = response.MessageSet("topic1", 111); - set.Should().NotBeNull(); - var messages = set.Messages.ToList(); - messages.Count().Should().Be(1); - messages.First().Payload.Length.Should().Be(100); } } } diff --git a/src/Kafka.Client.Tests/Response/ProducerResponseTest.cs b/src/Kafka.Client.Tests/Response/ProducerResponseTest.cs index bc79b6c..08a62c1 100644 --- a/src/Kafka.Client.Tests/Response/ProducerResponseTest.cs +++ b/src/Kafka.Client.Tests/Response/ProducerResponseTest.cs @@ -28,14 +28,18 @@ public void ShouldAbleToParseResponse() writer.Write(999); // partition id writer.Write((short)ErrorMapping.NoError); // error writer.Write(111L); // offset + writer.Write(432L); // timestamp + writer.Write(567); // throttletime stream.Seek(0, SeekOrigin.Begin); var reader = new KafkaBinaryReader(stream); - var response = new ProducerResponse.Parser().ParseFrom(reader); + var response = ProducerResponse.ParserForVersion(2).ParseFrom(reader); response.CorrelationId.Should().Be(123); response.Statuses.Count.Should().Be(1); var info = response.Statuses[new TopicAndPartition("topic", 999)]; info.Error.Should().Be(ErrorMapping.NoError); info.Offset.Should().Be(111L); + info.Timestamp.Should().Be(432L); + info.ThrottleTime.Should().Be(567); } } } diff --git a/src/Kafka.Client.Tests/packages.config b/src/Kafka.Client.Tests/packages.config index b6f98af..187730c 100644 --- a/src/Kafka.Client.Tests/packages.config +++ b/src/Kafka.Client.Tests/packages.config @@ -1,5 +1,6 @@  - - + + + \ No newline at end of file diff --git a/src/KafkaNET.Library/Cfg/ConsumerConfiguration.cs b/src/KafkaNET.Library/Cfg/ConsumerConfiguration.cs index ee13288..8d0686e 100644 --- a/src/KafkaNET.Library/Cfg/ConsumerConfiguration.cs +++ b/src/KafkaNET.Library/Cfg/ConsumerConfiguration.cs @@ -45,6 +45,12 @@ public class ConsumerConfiguration //fetch.message.max.bytes public const int DefaultFetchSize = 11 * 1024 * 1024; + //fetch.min.bytes + public const int DefaultFetchMinBytes = 1; + + //fetch.wait.max.ms + public const int DefaultMaxFetchWaitMs = 100; + public const int DefaultMaxFetchFactor = 10; public const int DefaultBackOffIncrement = 1000; @@ -54,9 +60,9 @@ public class ConsumerConfiguration //socket.receive.buffer.bytes public const int DefaultBufferSize = 11 * 1024 * 1024; - public const int DefaultSendTimeout = 5*1000; + public const int DefaultSendTimeout = 5 * 1000; - public const int DefaultReceiveTimeout = 5*1000; + public const int DefaultReceiveTimeout = 5 * 1000; public const int DefaultReconnectInterval = 60 * 1000; @@ -79,6 +85,8 @@ public ConsumerConfiguration() this.AutoCommit = DefaultAutoCommit; this.AutoCommitInterval = DefaultAutoCommitInterval; this.FetchSize = DefaultFetchSize; + this.FetchMinBytes = DefaultFetchMinBytes; + this.MaxFetchWaitMs = DefaultMaxFetchWaitMs; this.MaxFetchFactor = DefaultMaxFetchFactor; this.BackOffIncrement = DefaultBackOffIncrement; this.ConsumerId = GetHostName(); @@ -124,7 +132,7 @@ public ConsumerConfiguration(ConsumerConfigurationSection config) this.ShutdownTimeout = config.ShutdownTimeout; this.MaxFetchBufferLength = config.MaxFetchBufferLength; this.ConsumeGroupRebalanceRetryIntervalMs = DefaultConsumeGroupRebalanceRetryIntervalMs; - this.ConsumeGroupFindNewLeaderSleepIntervalMs = ConsumeGroupFindNewLeaderSleepIntervalMs; + this.ConsumeGroupFindNewLeaderSleepIntervalMs = DefaultConsumeGroupFindNewLeaderSleepIntervalMs; if (config.Broker.ElementInformation.IsPresent) { this.SetBrokerConfiguration(config.Broker); @@ -224,6 +232,20 @@ public static ConsumerConfiguration Configure(string section) /// public int FetchSize { get; set; } + /// + /// fetch.min.bytes - + /// The minimum amount of data the server should return for a fetch request. If insufficient data is available the request will wait for that much data to accumulate before answering the request. + /// Default value: 1 + /// + public int FetchMinBytes { get; set; } + + /// + /// fetch.wait.max.ms - + /// The maximum amount of time the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy fetch.min.bytes. + /// Default value: 100 + /// + public int MaxFetchWaitMs { get; set; } + /// /// Consumer Group API only. Zookeeper /// @@ -280,7 +302,7 @@ public static ConsumerConfiguration Configure(string section) /// Consumer Group API only. the time of sleep when no data to fetch. in milliseconds. /// Default value: 1000 /// - public int BackOffIncrement { get; set; } + public int BackOffIncrement { get; set; } /// /// Consumer group only. @@ -296,7 +318,7 @@ public string ConsumerId { //append ticks, so that consumerId is unqique, but sequential //non-unique consumerId may lead to issues, when broker loses connection and restores it - consumerId = value +"_" + DateTime.UtcNow.Ticks; + consumerId = value + "_" + DateTime.UtcNow.Ticks; } } private string consumerId; @@ -311,7 +333,7 @@ public string ConsumerId /// Consumer group only. /// Default value: 2000ms /// - public int ConsumeGroupFindNewLeaderSleepIntervalMs { get; set; } + public int ConsumeGroupFindNewLeaderSleepIntervalMs { get; set; } #endregion diff --git a/src/KafkaNET.Library/Cfg/ProducerConfiguration.cs b/src/KafkaNET.Library/Cfg/ProducerConfiguration.cs index 035eec9..9f08f5d 100644 --- a/src/KafkaNET.Library/Cfg/ProducerConfiguration.cs +++ b/src/KafkaNET.Library/Cfg/ProducerConfiguration.cs @@ -14,7 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + +using Kafka.Client.Requests; +using Kafka.Client.Responses; + namespace Kafka.Client.Cfg { using Kafka.Client.Messages; @@ -48,6 +51,7 @@ private ProducerConfiguration() this.ProducerRetries = DefaultProducerRetries; this.ProducerRetryExponentialBackoffMinMs = DefaultProducerRetryBackoffMinMs; this.ProducerRetryExponentialBackoffMaxMs = DefaultProducerRetryBackoffMaxMs; + this.ProducerRequestVersionId = ProducerRequest.CurrentVersion; this.ClientId = SyncProducerConfiguration.DefaultClientId; this.RequiredAcks = SyncProducerConfiguration.DefaultRequiredAcks; this.AckTimeout = SyncProducerConfiguration.DefaultAckTimeout; @@ -87,6 +91,7 @@ public ProducerConfiguration(ProducerConfiguration producerConfigTemplate, List< this.ProducerRetries = producerConfigTemplate.ProducerRetries; this.ProducerRetryExponentialBackoffMinMs = producerConfigTemplate.ProducerRetryExponentialBackoffMinMs; this.ProducerRetryExponentialBackoffMaxMs = producerConfigTemplate.ProducerRetryExponentialBackoffMaxMs; + this.ProducerRequestVersionId = producerConfigTemplate.ProducerRequestVersionId; this.ClientId = producerConfigTemplate.ClientId; this.RequiredAcks = producerConfigTemplate.RequiredAcks; this.AckTimeout = producerConfigTemplate.AckTimeout; @@ -110,6 +115,7 @@ public ProducerConfiguration(ProducerConfiguration producerConfigTemplate) this.ProducerRetries = producerConfigTemplate.ProducerRetries; this.ProducerRetryExponentialBackoffMinMs = producerConfigTemplate.ProducerRetryExponentialBackoffMinMs; this.ProducerRetryExponentialBackoffMaxMs = producerConfigTemplate.ProducerRetryExponentialBackoffMaxMs; + this.ProducerRequestVersionId = producerConfigTemplate.ProducerRequestVersionId; this.ClientId = producerConfigTemplate.ClientId; this.RequiredAcks = producerConfigTemplate.RequiredAcks; this.AckTimeout = producerConfigTemplate.AckTimeout; @@ -157,7 +163,9 @@ public string PartitionerClass } } - public short VersionId { get; set; } + public short TopicMetadataVersionId { get; set; } + + public short ProducerRequestVersionId { get; set; } public int BufferSize { get; set; } diff --git a/src/KafkaNET.Library/Consumers/Consumer.cs b/src/KafkaNET.Library/Consumers/Consumer.cs index 1bd1a14..1e8a1c8 100644 --- a/src/KafkaNET.Library/Consumers/Consumer.cs +++ b/src/KafkaNET.Library/Consumers/Consumer.cs @@ -109,7 +109,7 @@ public Consumer(ConsumerConfiguration config, string host, int port) #region Fetch - public FetchResponse Fetch(string clientId, string topic, int correlationId, int partitionId, long fetchOffset, int fetchSize + public FetchResponse Fetch(short versionId, string clientId, string topic, int correlationId, int partitionId, long fetchOffset, int fetchSize , int maxWaitTime, int minWaitSize) { var requestMap = new Dictionary>(); @@ -123,12 +123,20 @@ public FetchResponse Fetch(string clientId, string topic, int correlationId, int fetchSize) }); return this.Fetch(new FetchRequest( + versionId, correlationId, clientId, maxWaitTime, minWaitSize, requestMap)); } + + public FetchResponse Fetch(string clientId, string topic, int correlationId, int partitionId, long fetchOffset, int fetchSize + , int maxWaitTime, int minWaitSize) + { + return Fetch(FetchRequest.CurrentVersion, clientId, topic, correlationId, partitionId, fetchOffset, fetchSize, maxWaitTime, minWaitSize); + } + public FetchResponse Fetch(FetchRequest request) { short tryCounter = 1; diff --git a/src/KafkaNET.Library/Consumers/ConsumerIterator.cs b/src/KafkaNET.Library/Consumers/ConsumerIterator.cs index abc958c..99c0345 100644 --- a/src/KafkaNET.Library/Consumers/ConsumerIterator.cs +++ b/src/KafkaNET.Library/Consumers/ConsumerIterator.cs @@ -36,7 +36,7 @@ namespace Kafka.Client.Consumers /// /// The iterator takes a shutdownCommand object which can be added to the queue to trigger a shutdown /// - public class ConsumerIterator : IEnumerator + public class ConsumerIterator : IConsumerIterator { public static log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(ConsumerIterator)); @@ -247,7 +247,7 @@ private TData MakeNext() currentTopicInfo = currentDataChunk.TopicInfo; Logger.DebugFormat("CurrentTopicInfo: ConsumedOffset({0}), FetchOffset({1})", currentTopicInfo.ConsumeOffset, currentTopicInfo.FetchOffset); - if (currentTopicInfo.ConsumeOffset != currentDataChunk.FetchOffset) + if (currentTopicInfo.FetchOffset < currentDataChunk.FetchOffset) { Logger.ErrorFormat("consumed offset: {0} doesn't match fetch offset: {1} for {2}; consumer may lose data", currentTopicInfo.ConsumeOffset, diff --git a/src/KafkaNET.Library/Consumers/FetcherRunnable.cs b/src/KafkaNET.Library/Consumers/FetcherRunnable.cs index e0a3f87..51bef8a 100644 --- a/src/KafkaNET.Library/Consumers/FetcherRunnable.cs +++ b/src/KafkaNET.Library/Consumers/FetcherRunnable.cs @@ -90,8 +90,8 @@ internal void Run() new FetchRequestBuilder(). CorrelationId(reqId). ClientId(_config.ConsumerId ?? _name). - MaxWait(0). - MinBytes(0); + MaxWait(_config.MaxFetchWaitMs). + MinBytes(_config.FetchMinBytes); fetchablePartitionTopicInfos.ForEach(pti => builder.AddFetch(pti.Topic, pti.PartitionId, pti.NextRequestOffset, _config.FetchSize)); FetchRequest fetchRequest = builder.Build(); diff --git a/src/KafkaNET.Library/Consumers/IConsumerConnector.cs b/src/KafkaNET.Library/Consumers/IConsumerConnector.cs index 777046f..20e8e16 100644 --- a/src/KafkaNET.Library/Consumers/IConsumerConnector.cs +++ b/src/KafkaNET.Library/Consumers/IConsumerConnector.cs @@ -57,7 +57,8 @@ public interface IConsumerConnector : IDisposable /// The topic /// The partition /// The offset - void CommitOffset(string topic, int partition, long offset); + /// Indicates whether to set the fetcher's offset to the value committed. Default = true. + void CommitOffset(string topic, int partition, long offset, bool setPosition = true); /// /// Return offsets of current ConsumerGroup diff --git a/src/KafkaNET.Library/Consumers/IConsumerIterator.cs b/src/KafkaNET.Library/Consumers/IConsumerIterator.cs new file mode 100644 index 0000000..779c5fd --- /dev/null +++ b/src/KafkaNET.Library/Consumers/IConsumerIterator.cs @@ -0,0 +1,27 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Kafka.Client.Consumers +{ + using System; + using System.Collections.Generic; + + public interface IConsumerIterator : IEnumerator, IDisposable + { + void ClearIterator(); + } +} \ No newline at end of file diff --git a/src/KafkaNET.Library/Consumers/IKafkaMessageStream.cs b/src/KafkaNET.Library/Consumers/IKafkaMessageStream.cs new file mode 100644 index 0000000..d55f6fa --- /dev/null +++ b/src/KafkaNET.Library/Consumers/IKafkaMessageStream.cs @@ -0,0 +1,30 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Kafka.Client.Consumers +{ + using System.Collections.Generic; + using System.Threading; + + public interface IKafkaMessageStream : IEnumerable + { + IConsumerIterator iterator { get; } + int Count { get; } + IKafkaMessageStream GetCancellable(CancellationToken cancellationToken); + void Clear(); + } +} \ No newline at end of file diff --git a/src/KafkaNET.Library/Consumers/IZookeeperConsumerConnector.cs b/src/KafkaNET.Library/Consumers/IZookeeperConsumerConnector.cs new file mode 100644 index 0000000..3a0f77b --- /dev/null +++ b/src/KafkaNET.Library/Consumers/IZookeeperConsumerConnector.cs @@ -0,0 +1,37 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Kafka.Client.Consumers +{ + using Kafka.Client.Serialization; + using System.Collections.Generic; + + public interface IZookeeperConsumerConnector : IConsumerConnector + { + string ConsumerGroup { get; } + + void AutoCommit(); + + string GetConsumerIdString(); + + IDictionary>> CreateMessageStreams(IDictionary topicCountDict, IDecoder decoder); + + IDictionary> GetCurrentOwnership(); + + void ReleaseAllPartitionOwnerships(); + } +} \ No newline at end of file diff --git a/src/KafkaNET.Library/Consumers/KafkaMessageStream.cs b/src/KafkaNET.Library/Consumers/KafkaMessageStream.cs index aacb480..4249afe 100644 --- a/src/KafkaNET.Library/Consumers/KafkaMessageStream.cs +++ b/src/KafkaNET.Library/Consumers/KafkaMessageStream.cs @@ -27,13 +27,13 @@ namespace Kafka.Client.Consumers /// /// This class is a thread-safe IEnumerable of that can be enumerated to get messages. /// - public class KafkaMessageStream : IEnumerable + public class KafkaMessageStream : IKafkaMessageStream { private readonly BlockingCollection queue; private readonly int consumerTimeoutMs; - public ConsumerIterator iterator { get; private set; } + public IConsumerIterator iterator { get; private set; } private string topic; @@ -57,7 +57,7 @@ internal KafkaMessageStream(string topic, BlockingCollection q this.iterator = new ConsumerIterator(topic, queue, consumerTimeoutMs, decoder, token); } - public IEnumerable GetCancellable(CancellationToken cancellationToken) + public IKafkaMessageStream GetCancellable(CancellationToken cancellationToken) { return new KafkaMessageStream(this.topic, this.queue, this.consumerTimeoutMs, this.decoder, cancellationToken); } diff --git a/src/KafkaNET.Library/Consumers/PartitionTopicInfo.cs b/src/KafkaNET.Library/Consumers/PartitionTopicInfo.cs index 4ea28c1..1690ac0 100644 --- a/src/KafkaNET.Library/Consumers/PartitionTopicInfo.cs +++ b/src/KafkaNET.Library/Consumers/PartitionTopicInfo.cs @@ -232,8 +232,8 @@ public int Add(BufferedMessageSet messages) Logger.InfoFormat("{2} : Updating fetch offset = {0} with value = {1}", this.fetchedOffset, offset, this.PartitionId); this.chunkQueue.Add(new FetchedDataChunk(messages, this, this.fetchedOffset)); - long newOffset = Interlocked.Exchange(ref this.fetchedOffset, offset); - Logger.Debug("Updated fetch offset of " + this + " to " + newOffset); + Interlocked.Exchange(ref this.fetchedOffset, offset); + Logger.Debug("Updated fetch offset of " + this + " to " + offset); } return size; diff --git a/src/KafkaNET.Library/Consumers/ZookeeperConsumerConnector.cs b/src/KafkaNET.Library/Consumers/ZookeeperConsumerConnector.cs index 84f3f51..4d7f651 100644 --- a/src/KafkaNET.Library/Consumers/ZookeeperConsumerConnector.cs +++ b/src/KafkaNET.Library/Consumers/ZookeeperConsumerConnector.cs @@ -18,25 +18,20 @@ namespace Kafka.Client.Consumers { using Kafka.Client.Cfg; - using Kafka.Client.Cluster; using Kafka.Client.Serialization; using Kafka.Client.Utils; using Kafka.Client.ZooKeeperIntegration; using Kafka.Client.ZooKeeperIntegration.Listeners; - using log4net; using System; using System.Collections.Concurrent; using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Net; - using System.Reflection; + using System.Linq; /// /// The consumer high-level API, that hides the details of brokers from the consumer. /// It also maintains the state of what has been consumed. /// - public class ZookeeperConsumerConnector : KafkaClientBase, IConsumerConnector + public class ZookeeperConsumerConnector : KafkaClientBase, IZookeeperConsumerConnector { public static log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(ZookeeperConsumerConnector)); public static readonly int MaxNRetries = 4; @@ -154,16 +149,21 @@ public void CommitOffsets() { // Save offsets unconditionally. Kafka's latestOffset for a particular topic-partition can go backward // if a follwer which is not fully caught up becomes a leader. We still need to save the conumed offsets even then. - try - { - ZkUtils.UpdatePersistentPath(GetZkClient(), - topicDirs.ConsumerOffsetDir + "/" + - partition.Value.PartitionId, newOffset.ToString()); - partition.Value.CommitedOffset = newOffset; - } - catch (Exception ex) + //skip only if we are trying to commit the same offset + + if (newOffset != partition.Value.CommitedOffset) { - Logger.ErrorFormat("error in CommitOffsets UpdatePersistentPath : {0}", ex.FormatException()); + try + { + ZkUtils.UpdatePersistentPath(GetZkClient(), + topicDirs.ConsumerOffsetDir + "/" + + partition.Value.PartitionId, newOffset.ToString()); + partition.Value.CommitedOffset = newOffset; + } + catch (Exception ex) + { + Logger.ErrorFormat("error in CommitOffsets UpdatePersistentPath : {0}", ex.FormatException()); + } } } else @@ -210,7 +210,8 @@ public void AutoCommit() /// /// /// - public void CommitOffset(string topic, int partition, long offset) + /// Indicates whether to set the fetcher's offset to the value committed. Default = true. + public void CommitOffset(string topic, int partition, long offset, bool setPosition = true) { this.EnsuresNotDisposed(); if (this.GetZkClient() == null) @@ -236,8 +237,11 @@ public void CommitOffset(string topic, int partition, long offset) topicDirs.ConsumerOffsetDir + "/" + partitionTopicInfo.PartitionId, offset.ToString()); partitionTopicInfo.CommitedOffset = offset; - partitionTopicInfo.ConsumeOffset = offset; - partitionTopicInfo.FetchOffset = offset; + if (setPosition) + { + partitionTopicInfo.ConsumeOffset = offset; + partitionTopicInfo.FetchOffset = offset; + } } catch (Exception ex) { @@ -326,13 +330,22 @@ public IDictionary>> CreateMessageStream return this.Consume(topicCountDict, decoder); } + IDictionary>> IZookeeperConsumerConnector.CreateMessageStreams(IDictionary topicCountDict, IDecoder decoder) + { + return CreateMessageStreams(topicCountDict, decoder) + .ToDictionary( + kvp => kvp.Key, + kvp => (IList>)kvp.Value.Cast>().ToList() + ); + } + public Dictionary GetOffset(string topic) { Dictionary offsets = new Dictionary(); this.EnsuresNotDisposed(); if (this.GetZkClient() == null) { - throw new ArgumentNullException(string.Format("zkClient {1} has not been initialized!", this.config.ZooKeeper.ZkConnect)); + throw new ArgumentNullException(string.Format("zkClient {0} has not been initialized!", this.config.ZooKeeper.ZkConnect)); } var topicDirs = new ZKGroupTopicDirs(this.config.GroupId, topic); if (!GetZkClient().Exists(topicDirs.ConsumerOffsetDir)) diff --git a/src/KafkaNET.Library/Examples/ConsumeGroup/ConsumerGroupHelper.cs b/src/KafkaNET.Library/Examples/ConsumeGroup/ConsumerGroupHelper.cs index 2fb8d7b..302a82c 100644 --- a/src/KafkaNET.Library/Examples/ConsumeGroup/ConsumerGroupHelper.cs +++ b/src/KafkaNET.Library/Examples/ConsumeGroup/ConsumerGroupHelper.cs @@ -260,18 +260,20 @@ internal void Consume() Message lastMessage = null; int count = 0; KafkaMessageStream messagesStream = null; + ConsumerIterator iterator = null; using (CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(cgOptions.CancellationTimeoutMs)) { lastMessage = null; IEnumerable messages = topicData[0].GetCancellable(cancellationTokenSource.Token); messagesStream = (KafkaMessageStream)messages; + iterator = (ConsumerIterator)messagesStream.iterator; foreach (Message message in messages) { latestTotalCount = Interlocked.Increment(ref ConsumerGroupHelper.totalCount); lastMessage = message; if (latestTotalCount == 1) { - PartitionTopicInfo p = messagesStream.iterator.currentTopicInfo; + PartitionTopicInfo p = iterator.currentTopicInfo; Logger.InfoFormat("Read FIRST message, it's offset: {0} PartitionID:{1}", lastMessage.Offset, p == null ? "null" : p.PartitionId.ToString()); } hitEndAndCommited = false; @@ -285,7 +287,7 @@ internal void Consume() { connector.CommitOffsets(); consumedTotalCount += count; - PartitionTopicInfo p = messagesStream.iterator.currentTopicInfo; + PartitionTopicInfo p = iterator.currentTopicInfo; Console.WriteLine("\tRead some and commit once, Thread: {8} consumedTotalCount:{9} Target:{10} LATEST message offset: {0}. PartitionID:{1} -- {2} Totally read {3} will commit offset. {4} FetchOffset:{5} ConsumeOffset:{6} CommitedOffset:{7}" , lastMessage.Offset, lastMessage.PartitionId.Value, p == null ? "null" : p.PartitionId.ToString(), latestTotalCount, DateTime.Now , p == null ? "null" : p.FetchOffset.ToString() diff --git a/src/KafkaNET.Library/Examples/ProducePerfTest/ProducePerfTestHelperOptions.cs b/src/KafkaNET.Library/Examples/ProducePerfTest/ProducePerfTestHelperOptions.cs index fcdad98..42865a1 100644 --- a/src/KafkaNET.Library/Examples/ProducePerfTest/ProducePerfTestHelperOptions.cs +++ b/src/KafkaNET.Library/Examples/ProducePerfTest/ProducePerfTestHelperOptions.cs @@ -71,7 +71,7 @@ internal override string GetUsage(bool simple) sb.AppendFormat("\t-c BatchCount Optional, BatchCount to write, default -1 means always write.\r\n"); sb.AppendFormat("\t-b MessageCountPerBatch Optional, MessageCountPerBatch, default {0}.\r\n", KafkaNETExampleConstants.DefaultMessageCountPerBatch); sb.AppendFormat("\t-m MessageSize Optional, message size, default :{0}\r\n", KafkaNETExampleConstants.DefaultMessageSize); - sb.AppendFormat("\t-r Compression Optional, Compression mode, defulat 0, no Compression. 1 for GZIP, 2 for SNAPPY\r\n"); + sb.AppendFormat("\t-r Compression Optional, Compression mode, default 0, no Compression. 1 for GZIP, 2 for SNAPPY\r\n"); sb.AppendFormat("\t-a RequiredAcks Optional, RequiredAcks, default :{0}.\r\n", KafkaNETExampleConstants.DefaultRequiredAcks); sb.AppendFormat("\t-k AckTimeout Optional, AckTimeout, default :{0}.\r\n", SyncProducerConfiguration.DefaultAckTimeout); sb.AppendFormat("\t-s SendTimeout Optional, SendTimeout, default :{0}.\r\n", SyncProducerConfiguration.DefaultSendTimeout); diff --git a/src/KafkaNET.Library/Examples/ProduceSimple/ProduceSimpleHelperOptions.cs b/src/KafkaNET.Library/Examples/ProduceSimple/ProduceSimpleHelperOptions.cs index 097261d..cdc6a0c 100644 --- a/src/KafkaNET.Library/Examples/ProduceSimple/ProduceSimpleHelperOptions.cs +++ b/src/KafkaNET.Library/Examples/ProduceSimple/ProduceSimpleHelperOptions.cs @@ -96,7 +96,7 @@ internal override string GetUsage(bool simple) sb.AppendFormat("\t-c BatchCount Optional, BatchCount to write, default -1 means always write.\r\n"); sb.AppendFormat("\t-b MessageCountPerBatch Optional, MessageCountPerBatch, default {0}.\r\n", KafkaNETExampleConstants.DefaultMessageCountPerBatch); sb.AppendFormat("\t-m MessageSize Optional, message size, default :{0}\r\n", KafkaNETExampleConstants.DefaultMessageSize); - sb.AppendFormat("\t-r Compression Optional, Compression mode, defulat 0, no Compression. 1 for GZIP, 2 for SNAPPY\r\n"); + sb.AppendFormat("\t-r Compression Optional, Compression mode, default 0, no Compression. 1 for GZIP, 2 for SNAPPY\r\n"); sb.AppendFormat("\t-a RequiredAcks Optional, RequiredAcks, default :{0}.\r\n", KafkaNETExampleConstants.DefaultRequiredAcks); sb.AppendFormat("\t-k AckTimeout Optional, AckTimeout, default :{0}.\r\n", SyncProducerConfiguration.DefaultAckTimeout); sb.AppendFormat("\t-s SendTimeout Optional, SendTimeout, default :{0}.\r\n", SyncProducerConfiguration.DefaultSendTimeout); diff --git a/src/KafkaNET.Library/Helper/KafkaClientHelperUtils.cs b/src/KafkaNET.Library/Helper/KafkaClientHelperUtils.cs index 3f82ac3..a5465d7 100644 --- a/src/KafkaNET.Library/Helper/KafkaClientHelperUtils.cs +++ b/src/KafkaNET.Library/Helper/KafkaClientHelperUtils.cs @@ -67,7 +67,7 @@ public static BrokerConfiguration ToBrokerConfig(string brokerAddr) } string[] brokerParams = brokerAddr.Split(','); - if (brokerParams == null || brokerParams.Count() != 2) + if (brokerParams == null || brokerParams.Length != 2) { return null; } @@ -79,7 +79,7 @@ public static BrokerConfiguration ToBrokerConfig(string brokerAddr) } string[] hostParams = brokerParams[1].Split(':'); - if (hostParams == null || hostParams.Count() != 2) + if (hostParams == null || hostParams.Length != 2) { return null; } diff --git a/src/KafkaNET.Library/KafkaConnection.cs b/src/KafkaNET.Library/KafkaConnection.cs index 475ba7d..7102a25 100644 --- a/src/KafkaNET.Library/KafkaConnection.cs +++ b/src/KafkaNET.Library/KafkaConnection.cs @@ -111,7 +111,7 @@ public ProducerResponse Send(ProducerRequest request) { this.EnsuresNotDisposed(); Guard.NotNull(request, "request"); - return this.Handle(request.RequestBuffer.GetBuffer(), new ProducerResponse.Parser(), request.RequiredAcks != 0); + return this.Handle(request.RequestBuffer.GetBuffer(), ProducerResponse.ParserForVersion(request.VersionId), request.RequiredAcks != 0); } /// @@ -139,7 +139,7 @@ public FetchResponse Send(FetchRequest request) { this.EnsuresNotDisposed(); Guard.NotNull(request, "request"); - return this.Handle(request.RequestBuffer.GetBuffer(), new FetchResponse.Parser()); + return this.Handle(request.RequestBuffer.GetBuffer(), FetchResponse.ParserForVersion(request.VersionId)); } /// @@ -191,7 +191,8 @@ public override string ToString() private void Connect() { - if (socket != null) + var watch = Stopwatch.StartNew(); + if (this.socket != null) { try { @@ -199,13 +200,12 @@ private void Connect() } catch (Exception e) { - Logger.Error(this.ToString() + ExceptionUtil.GetExceptionDetailInfo(e)); + Logger.Error(string.Format("KafkaConnectio.Connect() exception in CloseConnection, duration={0}ms", watch.ElapsedMilliseconds), e); } } this.socket = null; - IPAddress targetAddress; if (IPAddress.TryParse(server, out targetAddress)) { @@ -220,12 +220,23 @@ private void Connect() ReceiveBufferSize = bufferSize }; - newSocket.Connect(targetAddress, port); - socket = newSocket; + var result = newSocket.BeginConnect(targetAddress, port, null, null); + // use receiveTimeoutMs as connectionTimeoutMs + result.AsyncWaitHandle.WaitOne(this.receiveTimeoutMs, true); + result.AsyncWaitHandle.Close(); + + if (newSocket.Connected) + { + this.socket = newSocket; + } + else + { + newSocket.Close(); + } } catch (Exception ex) { - Logger.Error(this.ToString() + ExceptionUtil.GetExceptionDetailInfo(ex)); + Logger.Error(string.Format("KafkaConnectio.Connect() failed, duration={0}ms,this={1},targetAddress={2}", watch.ElapsedMilliseconds, this, targetAddress), ex); throw new UnableToConnectToHostException(targetAddress.ToString(), port, ex); } } @@ -243,20 +254,31 @@ private void Connect() try { var newSocket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp) + { + NoDelay = true, + ReceiveTimeout = this.receiveTimeoutMs, + SendTimeout = this.sendTimeoutMs, + SendBufferSize = bufferSize, + ReceiveBufferSize = bufferSize + }; + + var result = newSocket.BeginConnect(address, port, null, null); + // use receiveTimeoutMs as connectionTimeoutMs + result.AsyncWaitHandle.WaitOne(this.receiveTimeoutMs, true); + result.AsyncWaitHandle.Close(); + + if (!newSocket.Connected) { - NoDelay = true, - ReceiveTimeout = this.receiveTimeoutMs, - SendTimeout = this.sendTimeoutMs, - SendBufferSize = bufferSize, - ReceiveBufferSize = bufferSize - }; - - newSocket.Connect(address, port); - socket = newSocket; + newSocket.Close(); + continue; + } + + this.socket = newSocket; break; } catch (Exception e) { + Logger.Error(string.Format("ErrorConnectingToAddress, duration={0}ms,address={1},server={2},port={3}", watch.ElapsedMilliseconds, address, server, port), e); throw new UnableToConnectToHostException(server, port, e); } } @@ -264,12 +286,18 @@ private void Connect() if (socket == null) { + Logger.ErrorFormat("UnableToConnectToHostException, duration={0}ms,server={1},port={2}", watch.ElapsedMilliseconds, server, port); throw new UnableToConnectToHostException(server, port); } - this.stream = new NetworkStream(socket, true); - this.stream.ReadTimeout = networkStreamReadTimeoutMs; - this.stream.WriteTimeout = networkStreamWriteTimeoutMs; + Logger.DebugFormat("KafkaConnection.Connect() succeeded, duration={0}ms,server={1},port={2}", + watch.ElapsedMilliseconds, server, port); + + this.stream = new NetworkStream(socket, true) + { + ReadTimeout = this.networkStreamReadTimeoutMs, + WriteTimeout = this.networkStreamWriteTimeoutMs + }; this.reader = new KafkaBinaryReader(stream); Connected = true; this.lastActiveTimeMs = Environment.TickCount; diff --git a/src/KafkaNET.Library/KafkaNET.Library.csproj b/src/KafkaNET.Library/KafkaNET.Library.csproj index 2617216..e200e53 100644 --- a/src/KafkaNET.Library/KafkaNET.Library.csproj +++ b/src/KafkaNET.Library/KafkaNET.Library.csproj @@ -141,8 +141,8 @@ TRACE;NET45 - - ..\packages\log4net.1.2.10\lib\2.0\log4net.dll + + ..\packages\log4net.2.0.3\lib\net40-full\log4net.dll True @@ -156,8 +156,8 @@ - ..\packages\ZooKeeper.Net.3.4.6.2\lib\net40\ZooKeeperNet.dll - True + False + ..\..\lib\ZooKeeperNet.dll @@ -170,6 +170,11 @@ + + + + + @@ -363,5 +368,8 @@ + + + - \ No newline at end of file + diff --git a/src/KafkaNET.Library/KafkaNET.Library.nuspec b/src/KafkaNET.Library/KafkaNET.Library.nuspec new file mode 100644 index 0000000..a1819c3 --- /dev/null +++ b/src/KafkaNET.Library/KafkaNET.Library.nuspec @@ -0,0 +1,22 @@ + + + + Microsoft.CSharpClient-for-Kafka + 1.0.0.0 + Microsoft Corporation + Microsoft Corporation + https://github.com/Microsoft/CSharpClient-for-Kafka/blob/master/LICENSE.txt + https://github.com/Microsoft/CSharpClient-for-Kafka + true + .Net implementation of the Apache Kafka Protocol that provides basic functionality through Producer/Consumer classes. The project also offers balanced consumer implementation. + https://github.com/Microsoft/CSharpClient-for-Kafka/releases + Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. See LICENSE file in the project root for full license information. + .Net C# Kafka Kafkanet Client + + + + + + + + \ No newline at end of file diff --git a/src/KafkaNET.Library/Messages/BufferedMessageSet.cs b/src/KafkaNET.Library/Messages/BufferedMessageSet.cs index 725125a..ad70db3 100644 --- a/src/KafkaNET.Library/Messages/BufferedMessageSet.cs +++ b/src/KafkaNET.Library/Messages/BufferedMessageSet.cs @@ -48,6 +48,11 @@ public class BufferedMessageSet : MessageSet, IEnumerable, IEn private MessageAndOffset nextItem; public static BufferedMessageSet ParseFrom(KafkaBinaryReader reader, int size, int partitionID) + { + return ParseFrom(reader, null, size, partitionID); + } + + public static BufferedMessageSet ParseFrom(KafkaBinaryReader reader, Message wrapperMessage, int size, int partitionID) { int bytesLeft = size; if (bytesLeft == 0) @@ -74,8 +79,9 @@ public static BufferedMessageSet ParseFrom(KafkaBinaryReader reader, int size, i break; } - Message msg = Message.ParseFrom(reader, offset, msgSize, partitionID); + Message msg = Message.ParseFrom(reader, wrapperMessage, offset, msgSize, partitionID); bytesLeft -= msgSize; + messages.Add(msg); } while (bytesLeft > 0); @@ -92,6 +98,7 @@ public static BufferedMessageSet ParseFrom(KafkaBinaryReader reader, int size, i /// Initializes a new instance of the class. /// /// The list of messages. + /// public BufferedMessageSet(IEnumerable messages, int partition) : this(messages, (short)ErrorMapping.NoError, partition) { @@ -316,7 +323,7 @@ private MessageAndOffset MakeNextOuter() return AllDone(); } - Message newMessage = this.Messages.ToList()[topIterPosition]; + Message newMessage = this.Messages.ElementAt(topIterPosition); lastMessageSize = newMessage.Size; topIterPosition++; switch (newMessage.CompressionCodec) diff --git a/src/KafkaNET.Library/Messages/CompressionUtils.cs b/src/KafkaNET.Library/Messages/CompressionUtils.cs index 4441160..7289c26 100644 --- a/src/KafkaNET.Library/Messages/CompressionUtils.cs +++ b/src/KafkaNET.Library/Messages/CompressionUtils.cs @@ -16,7 +16,6 @@ */ - namespace Kafka.Client.Messages { using Kafka.Client.Exceptions; @@ -42,6 +41,22 @@ public static Message Compress(IEnumerable messages, int partition) public static Message Compress(IEnumerable messages, CompressionCodecs compressionCodec, int partition) { + return Compress(messages, compressionCodec, partition, Message.NoTimestampValue); + } + + public static Message Compress(IEnumerable messages, CompressionCodecs compressionCodec, int partition, long wrapperMessageTimestamp) + { + var timestampType = wrapperMessageTimestamp == Message.NoTimestampValue ? TimestampTypes.NoTimestamp : TimestampTypes.LogAppendTime; + + var messageVersionId = 0; + + // Determine which message version for the wrapper based on the message version of the messages being compressed. + foreach (var message in messages) + { + messageVersionId = message.Magic; + break; + } + switch (compressionCodec) { case CompressionCodecs.DefaultCompressionCodec: @@ -74,11 +89,10 @@ public static Message Compress(IEnumerable messages, CompressionCodecs } } - Message oneCompressedMessage = new Message(outputStream.ToArray(), compressionCodec) + return new Message(wrapperMessageTimestamp, timestampType, outputStream.ToArray(), null, compressionCodec, messageVersionId) { PartitionId = partition }; - return oneCompressedMessage; } } @@ -95,7 +109,7 @@ public static Message Compress(IEnumerable messages, CompressionCodecs try { - return new Message(SnappyHelper.Compress(inputStream.GetBuffer()), compressionCodec) + return new Message(wrapperMessageTimestamp, timestampType, SnappyHelper.Compress(inputStream.GetBuffer()), null, compressionCodec, messageVersionId) { PartitionId = partition }; @@ -112,13 +126,13 @@ public static Message Compress(IEnumerable messages, CompressionCodecs } } - public static BufferedMessageSet Decompress(Message message, int partition) + public static BufferedMessageSet Decompress(Message wrapperMessage, int partition) { - switch (message.CompressionCodec) + switch (wrapperMessage.CompressionCodec) { case CompressionCodecs.DefaultCompressionCodec: case CompressionCodecs.GZIPCompressionCodec: - byte[] inputBytes = message.Payload; + byte[] inputBytes = wrapperMessage.Payload; using (var outputStream = new MemoryStream()) { using (var inputStream = new MemoryStream(inputBytes)) @@ -141,18 +155,18 @@ public static BufferedMessageSet Decompress(Message message, int partition) outputStream.Position = 0; using (var reader = new KafkaBinaryReader(outputStream)) { - return BufferedMessageSet.ParseFrom(reader, (int)outputStream.Length, partition); + return BufferedMessageSet.ParseFrom(reader, wrapperMessage, (int)outputStream.Length, partition); } } case CompressionCodecs.SnappyCompressionCodec: try { - using (var stream = new MemoryStream(SnappyHelper.Decompress(message.Payload))) + using (var stream = new MemoryStream(SnappyHelper.Decompress(wrapperMessage.Payload))) { using (var reader = new KafkaBinaryReader(stream)) { - return BufferedMessageSet.ParseFrom(reader, (int)stream.Length, partition); + return BufferedMessageSet.ParseFrom(reader, wrapperMessage, (int)stream.Length, partition); } } } @@ -163,7 +177,7 @@ public static BufferedMessageSet Decompress(Message message, int partition) } default: - throw new UnknownCodecException(String.Format(CultureInfo.CurrentCulture, "Unknown Codec: {0}", message.CompressionCodec)); + throw new UnknownCodecException(String.Format(CultureInfo.CurrentCulture, "Unknown Codec: {0}", wrapperMessage.CompressionCodec)); } } } diff --git a/src/KafkaNET.Library/Messages/Message.cs b/src/KafkaNET.Library/Messages/Message.cs index 58f7f6b..dc33332 100644 --- a/src/KafkaNET.Library/Messages/Message.cs +++ b/src/KafkaNET.Library/Messages/Message.cs @@ -38,23 +38,22 @@ namespace Kafka.Client.Messages /// public class Message : IWritable { - public const int DefaultHeaderSize = DefaultMagicLength + DefaultCrcLength + DefaultAttributesLength + DefaultKeySizeLength + DefaultValueSizeLength; + public const int V0HeaderSize = DefaultMagicLength + DefaultCrcLength + DefaultAttributesLength + DefaultKeySizeLength + DefaultValueSizeLength; + public const int V1HeaderSize = V0HeaderSize + DefaultTimestampLength; - private const byte DefaultMagicValue = 0; + private const byte MagicValueV0 = 0; + private const byte MagicValueV1 = 1; - - /// - /// Need set magic to 1 while compress, - /// See https://cwiki.apache.org/confluence/display/KAFKA/Wire+Format for detail - /// - private const byte MagicValueWhenCompress = 1; private const byte DefaultMagicLength = 1; private const byte DefaultCrcLength = 4; private const byte MagicOffset = DefaultCrcLength; private const byte DefaultAttributesLength = 1; + private const byte DefaultTimestampLength = 8; private const byte DefaultKeySizeLength = 4; private const byte DefaultValueSizeLength = 4; - private const byte CompressionCodeMask = 3; + private const byte CompressionCodecMask = 7; + private const byte TimestampTypeMask = 8; + public const long NoTimestampValue = -1; private long _offset = -1; @@ -68,28 +67,97 @@ public class Message : IWritable /// Initializes the magic number as default and the checksum as null. It will be automatically computed. /// public Message(byte[] payload) - : this(payload, null, CompressionCodecs.NoCompressionCodec) + : this(NoTimestampValue, TimestampTypes.NoTimestamp, payload) + { + } + + public Message(DateTime timestamp, byte[] payload) + : this(DateTimeToUnixTime(timestamp), payload) + { + } + + public Message(long timestamp, byte[] payload) + : this(timestamp, payload, CompressionCodecs.NoCompressionCodec) { - Guard.NotNull(payload, "payload"); } public Message(byte[] payload, CompressionCodecs compressionCodec) : this(payload, null, compressionCodec) { - Guard.NotNull(payload, "payload"); + } + + public Message(DateTime timestamp, byte[] payload, CompressionCodecs compressionCodec) + : this(DateTimeToUnixTime(timestamp), payload, compressionCodec) + { + } + + public Message(long timestamp, byte[] payload, CompressionCodecs compressionCodec) + : this(timestamp, TimestampTypes.CreateTime, payload, compressionCodec) + { + } + + public Message(byte[] payload, byte[] key, CompressionCodecs compressionCodec) + : this(NoTimestampValue, TimestampTypes.NoTimestamp, payload, key, compressionCodec) + { + } + + public Message(long timestamp, TimestampTypes timestampType, byte[] payload, CompressionCodecs compressionCodec) + : this(timestamp, timestampType, payload, null, compressionCodec) + { + } + + public Message(long timestamp, TimestampTypes timestampType, byte[] payload) + : this(timestamp, timestampType, payload, CompressionCodecs.NoCompressionCodec) + { + } + + public Message(DateTime timestamp, byte[] payload, byte[] key, CompressionCodecs compressionCodec) + : this(DateTimeToUnixTime(timestamp), TimestampTypes.CreateTime, payload, key, compressionCodec) + { + } + + public Message(long timestamp, byte[] payload, byte[] key, CompressionCodecs compressionCodec) + : this(timestamp, TimestampTypes.CreateTime, payload, key, compressionCodec) + { } /// /// Initializes a new instance of the Message class. /// + /// + /// The timestamp type. /// The data for the payload. - /// The magic identifier. - /// The checksum for the payload. - public Message(byte[] payload, byte[] key, CompressionCodecs compressionCodec) + /// The key. + /// The compression codec. + public Message(long timestamp, TimestampTypes timestampType, byte[] payload, byte[] key, CompressionCodecs compressionCodec, int? messageVersionId = null) { Guard.NotNull(payload, "payload"); - int length = DefaultHeaderSize + payload.Length; + int length; + + if (messageVersionId == null) + { + messageVersionId = timestampType == TimestampTypes.NoTimestamp ? 0 : 1; + } + + if (messageVersionId == 0) + { + // V0 message + this.Magic = MagicValueV0; + this.Timestamp = NoTimestampValue; + length = V0HeaderSize; + } + else + { + // V1 message + this.Magic = MagicValueV1; + this.Attributes |= + (byte) (TimestampTypeMask & Messages.TimestampType.GetTimestampTypeValue(timestampType)); + this.Timestamp = timestamp; + + length = V1HeaderSize; + } + Key = key; if (key != null) { @@ -97,19 +165,22 @@ public Message(byte[] payload, byte[] key, CompressionCodecs compressionCodec) } this.Payload = payload; - this.Magic = DefaultMagicValue; + length += payload.Length; + if (compressionCodec != CompressionCodecs.NoCompressionCodec) { this.Attributes |= - (byte)(CompressionCodeMask & Messages.CompressionCodec.GetCompressionCodecValue(compressionCodec)); - - // It seems that the java producer uses magic 0 for compressed messages, so we are sticking with 0 for now - // this.Magic = MagicValueWhenCompress; + (byte)(CompressionCodecMask & Messages.CompressionCodec.GetCompressionCodecValue(compressionCodec)); } this.Size = length; } + /// + /// Gets the timestamp. + /// + public long Timestamp { get; private set; } + /// /// Gets the payload. /// @@ -125,6 +196,11 @@ public Message(byte[] payload, byte[] key, CompressionCodecs compressionCodec) /// public byte Attributes { get; private set; } + /// + /// Gets the compression-oriented attributes of the message. + /// + public byte CompressionAttributes { get { return (byte) (Attributes & CompressionCodecMask); } } + /// /// Gets the total size of message. /// @@ -170,7 +246,16 @@ public CompressionCodecs CompressionCodec { get { - return Messages.CompressionCodec.GetCompressionCodec(Attributes & CompressionCodeMask); + return Messages.CompressionCodec.GetCompressionCodec(Attributes & CompressionCodecMask); + } + } + + public TimestampTypes TimestampType + { + get + { + if (Magic == MagicValueV0) return TimestampTypes.NoTimestamp; + return Messages.TimestampType.GetTimestampType(Attributes & TimestampTypeMask); } } @@ -204,6 +289,10 @@ public void WriteTo(KafkaBinaryWriter writer) var beginningPosition = writer.CurrentPos; writer.Write(this.Magic); writer.Write(this.Attributes); + if (this.Magic == MagicValueV1) + { + writer.Write(Timestamp); + } writer.Write(this.KeyLength); if (KeyLength != -1) { @@ -226,13 +315,18 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("Magic: "); sb.Append(this.Magic); - if (this.Magic == 1) + sb.Append(", Attributes: "); + sb.Append(this.Attributes); + + if (this.Magic == MagicValueV1) { - sb.Append(", Attributes: "); - sb.Append(this.Attributes); + sb.Append(", Timestamp: "); + sb.Append(this.Timestamp); + sb.Append(", TimestampType: "); + sb.Append(this.TimestampType); } - sb.Append(", topic: "); + sb.Append(", payload: "); try { sb.Append(Encoding.UTF8.GetString(this.Payload)); @@ -257,7 +351,7 @@ public override string ToString() * 7. V byte payload * */ - internal static Message ParseFrom(KafkaBinaryReader reader, long offset, int size, int partitionID) + internal static Message ParseFrom(KafkaBinaryReader reader, Message wrapperMessage, long offset, int size, int partitionID) { Message result; int readed = 0; @@ -267,10 +361,26 @@ internal static Message ParseFrom(KafkaBinaryReader reader, long offset, int siz readed++; byte[] payload; - if (magic == 2 || magic == 0) // some producers (CLI) send magic 0 while others have value of 2 + if (magic <= 2) // some producers (CLI) send magic 0 while others have value of 2. v1 messages have magic = 1 { byte attributes = reader.ReadByte(); readed++; + var timestampType = TimestampTypes.NoTimestamp; + var timestamp = NoTimestampValue; + if (magic == 1) // v1 message format + { + timestamp = reader.ReadInt64(); + timestampType = Messages.TimestampType.GetTimestampType(attributes & TimestampTypeMask); + + // If wrapper message is LOG_APPEND_TIME and exists, use it. + if (wrapperMessage != null && wrapperMessage.TimestampType == TimestampTypes.LogAppendTime && wrapperMessage.Timestamp != NoTimestampValue) + { + timestamp = wrapperMessage.Timestamp; + timestampType = wrapperMessage.TimestampType; + } + + readed += 8; + } var keyLength = reader.ReadInt32(); readed += 4; byte[] key = null; @@ -283,7 +393,10 @@ internal static Message ParseFrom(KafkaBinaryReader reader, long offset, int siz readed += 4; payload = reader.ReadBytes(payloadSize); readed += payloadSize; - result = new Message(payload, key, Messages.CompressionCodec.GetCompressionCodec(attributes & CompressionCodeMask)) + + var compressionCodec = Messages.CompressionCodec.GetCompressionCodec(attributes & CompressionCodecMask); + + result = new Message(timestamp, timestampType, payload, key, compressionCodec) { Offset = offset, PartitionId = partitionID @@ -291,8 +404,8 @@ internal static Message ParseFrom(KafkaBinaryReader reader, long offset, int siz } else { - payload = reader.ReadBytes(size - DefaultHeaderSize); - readed += size - DefaultHeaderSize; + payload = reader.ReadBytes(size - V0HeaderSize); + readed += size - V0HeaderSize; result = new Message(payload) { Offset = offset, PartitionId = partitionID }; } @@ -305,28 +418,32 @@ internal static Message ParseFrom(KafkaBinaryReader reader, long offset, int siz } /// - /// Clean up attributes for message, otherwise there is double decompress at kafka broker side. + /// Clean up compression attributes for message, otherwise there is double decompress at kafka broker side. /// - internal void CleanMagicAndAttributesBeforeCompress() + internal void CleanCompressionAttributes() { - this.Attributes = 0; - this.Magic = DefaultMagicValue; + this.Attributes = (byte) (this.Attributes & ~CompressionCodecMask); } /// - /// Restore the Magic and Attributes after compress. + /// Restore the Attributes after compress. /// - /// /// - internal void RestoreMagicAndAttributesAfterCompress(byte magic, byte attributes) + internal void RestoreCompressionAttributes(byte compressionAttributes) { - this.Attributes = attributes; - this.Magic = magic; + this.Attributes |= compressionAttributes; } private uint ComputeChecksum(byte[] message, int offset, int count) { return Crc32Hasher.ComputeCrcUint32(message, offset, count); } + + private static readonly DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); + + private static long DateTimeToUnixTime(DateTime dateTime) + { + return (long)(TimeZoneInfo.ConvertTimeToUtc(dateTime) - unixEpoch).TotalMilliseconds; + } } } diff --git a/src/KafkaNET.Library/Messages/TimestampType.cs b/src/KafkaNET.Library/Messages/TimestampType.cs new file mode 100644 index 0000000..7554657 --- /dev/null +++ b/src/KafkaNET.Library/Messages/TimestampType.cs @@ -0,0 +1,59 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Kafka.Client.Messages +{ + using Kafka.Client.Exceptions; + using System; + using System.Globalization; + + public static class TimestampType + { + public static TimestampTypes GetTimestampType(int timeStampType) + { + switch (timeStampType) + { + case 0: + return TimestampTypes.CreateTime; + case 8: + return TimestampTypes.LogAppendTime; + default: + throw new UnknownCodecException(String.Format( + CultureInfo.CurrentCulture, + "{0} is an unknown timestamp type", + timeStampType)); + } + } + + public static byte GetTimestampTypeValue(TimestampTypes timestampType) + { + switch (timestampType) + { + case TimestampTypes.NoTimestamp: + case TimestampTypes.CreateTime: + return (byte)0; + case TimestampTypes.LogAppendTime: + return (byte)8; + default: + throw new UnknownCodecException(String.Format( + CultureInfo.CurrentCulture, + "{0} is an unknown timestamp type", + timestampType)); + } + } + } +} diff --git a/src/KafkaNET.Library/Messages/TimestampTypes.cs b/src/KafkaNET.Library/Messages/TimestampTypes.cs new file mode 100644 index 0000000..1a83e27 --- /dev/null +++ b/src/KafkaNET.Library/Messages/TimestampTypes.cs @@ -0,0 +1,31 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +namespace Kafka.Client.Messages +{ + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + + public enum TimestampTypes + { + NoTimestamp, + CreateTime, + LogAppendTime + } +} diff --git a/src/KafkaNET.Library/Producers/DefaultCallbackHandler.cs b/src/KafkaNET.Library/Producers/DefaultCallbackHandler.cs index bc1f063..c0b4b89 100644 --- a/src/KafkaNET.Library/Producers/DefaultCallbackHandler.cs +++ b/src/KafkaNET.Library/Producers/DefaultCallbackHandler.cs @@ -106,7 +106,7 @@ public void Handle(IEnumerable> events) continue; } int allCount = events.Count(); - int remainFailedCount = outstandingProduceRequests.FailedProducerDatas.ToList().Count(); + int remainFailedCount = outstandingProduceRequests.FailedProducerDatas.ToList().Count; string message = FailedToSendMessageException.BuildExceptionMessage(new List() { e }, producerConfig.ProducerRetries, allCount, remainFailedCount, outstandingProduceRequests); Logger.Error(message); throw new FailedToSendMessageException(message, new List() { e }, outstandingProduceRequests, allCount, remainFailedCount); @@ -116,7 +116,7 @@ public void Handle(IEnumerable> events) if (outstandingProduceRequests.HasDataNeedDispatch) { int allCount = events.Count(); - int remainFailedCount = outstandingProduceRequests.FailedProducerDatas.ToList().Count(); + int remainFailedCount = outstandingProduceRequests.FailedProducerDatas.ToList().Count; string message = FailedToSendMessageException.BuildExceptionMessage(new List(), producerConfig.ProducerRetries, allCount, remainFailedCount, outstandingProduceRequests); Logger.Error(message); throw new FailedToSendMessageException(message, new List(), outstandingProduceRequests, allCount, remainFailedCount); @@ -168,7 +168,7 @@ private ProduceDispatchSeralizeResult DispatchSerializedData(IEnumerable e.Item1.Topic).Distinct()) { // update the metadata in case that the failure caused by kafka broker failover - this.brokerPartitionInfo.UpdateInfo(producerConfig.VersionId, NextCorrelationId, + this.brokerPartitionInfo.UpdateInfo(producerConfig.TopicMetadataVersionId, NextCorrelationId, producerConfig.ClientId, topic); } @@ -212,7 +212,8 @@ private ProducerSendResult GetPartitionListForTopic(ProducerData pd) } else if (this.producerConfig.TotalNumPartitions == 0) { - topicPartitionsList = this.brokerPartitionInfo.GetBrokerPartitionInfo(producerConfig.VersionId, + topicPartitionsList = this.brokerPartitionInfo.GetBrokerPartitionInfo(producerConfig.TopicMetadataVersionId, producerConfig.ClientId, NextCorrelationId, pd.Topic); } else @@ -440,14 +441,14 @@ private Dictionary GroupMessagesToSet(Dic new BufferedMessageSet(CompressionCodecs.NoCompressionCodec, messages, topicAndPartition.PartitionId)); break; default: - byte magic = 0; - byte attributes = 0; - foreach (Message m in messages) + byte compressionAttributes = 0; + + foreach (var m in messages) { - magic = m.Magic; - attributes = m.Attributes; - m.CleanMagicAndAttributesBeforeCompress(); + compressionAttributes |= m.CompressionAttributes; + m.CleanCompressionAttributes(); } + if (!this.producerConfig.CompressedTopics.Any() || this.producerConfig.CompressedTopics.Contains(topicAndPartition.Topic)) { messagesPerTopicPartition.Add(topicAndPartition, new BufferedMessageSet(this.producerConfig.CompressionCodec, messages, topicAndPartition.PartitionId)); @@ -456,10 +457,11 @@ private Dictionary GroupMessagesToSet(Dic { messagesPerTopicPartition.Add(topicAndPartition, new BufferedMessageSet(CompressionCodecs.NoCompressionCodec, messages, topicAndPartition.PartitionId)); } - foreach (Message m in messages) + foreach (var m in messages) { - m.RestoreMagicAndAttributesAfterCompress(magic, attributes); + m.RestoreCompressionAttributes(compressionAttributes); } + break; } } diff --git a/src/KafkaNET.Library/Producers/IProducer.cs b/src/KafkaNET.Library/Producers/IProducer.cs index f74eeef..79a9feb 100644 --- a/src/KafkaNET.Library/Producers/IProducer.cs +++ b/src/KafkaNET.Library/Producers/IProducer.cs @@ -15,6 +15,8 @@ * limitations under the License. */ +using System.Collections.Generic; + namespace Kafka.Client.Producers { using Kafka.Client.Cfg; @@ -29,6 +31,13 @@ public interface IProducer : IDisposable { ProducerConfiguration Config { get; } + /// + /// Sends the data to a multiple topics, partitioned by key, using either the + /// synchronous or the asynchronous producer. + /// + /// The producer data objects that encapsulate the topic, key and message data. + void Send(IEnumerable> data); + /// /// Sends the data to a single topic, partitioned by key, using either the /// synchronous or the asynchronous producer. diff --git a/src/KafkaNET.Library/Requests/FetchRequest.cs b/src/KafkaNET.Library/Requests/FetchRequest.cs index a59a0e6..865609d 100644 --- a/src/KafkaNET.Library/Requests/FetchRequest.cs +++ b/src/KafkaNET.Library/Requests/FetchRequest.cs @@ -56,11 +56,11 @@ public class FetchRequest : AbstractRequest, IWritable public const byte DefaultMinBytesSize = 4; public const byte DefaultOffsetInfoSizeSize = 4; - public const short CurrentVersion = 1; + public const short CurrentVersion = 0; - public FetchRequest(int correlationId, string clientId, int maxWait, int minBytes, Dictionary> fetchInfos) + public FetchRequest(short versionId, int correlationId, string clientId, int maxWait, int minBytes, Dictionary> fetchInfos) { - this.VersionId = CurrentVersion; + this.VersionId = versionId; this.CorrelationId = correlationId; this.ClientId = clientId; this.ReplicaId = -1; @@ -72,6 +72,11 @@ public FetchRequest(int correlationId, string clientId, int maxWait, int minByte this.WriteTo(this.RequestBuffer); } + public FetchRequest(int correlationId, string clientId, int maxWait, int minBytes, Dictionary> fetchInfos) + : this(CurrentVersion, correlationId, clientId, maxWait, minBytes, fetchInfos) + { + } + public int GetRequestLength() { return DefaultRequestSizeSize + @@ -135,7 +140,7 @@ public void WriteTo(KafkaBinaryWriter writer) writer.Write(this.ReplicaId); writer.Write(this.MaxWait); writer.Write(this.MinBytes); - writer.Write(this.OffsetInfo.Count()); + writer.Write(this.OffsetInfo.Count); foreach (var offsetInfo in this.OffsetInfo) { writer.WriteShortString(offsetInfo.Key); diff --git a/src/KafkaNET.Library/Requests/FetchRequestBuilder.cs b/src/KafkaNET.Library/Requests/FetchRequestBuilder.cs index e0a403e..d44b574 100644 --- a/src/KafkaNET.Library/Requests/FetchRequestBuilder.cs +++ b/src/KafkaNET.Library/Requests/FetchRequestBuilder.cs @@ -28,6 +28,7 @@ namespace Kafka.Client.Requests /// public class FetchRequestBuilder { + private short versionId = FetchRequest.CurrentVersion; private int correlationId = -1; private string clientId = string.Empty; private int maxWait = -1; @@ -67,6 +68,12 @@ public FetchRequestBuilder MaxWait(int maxWait) return this; } + public FetchRequestBuilder VersionId(short versionId) + { + this.versionId = versionId; + return this; + } + public FetchRequestBuilder MinBytes(int minBytes) { this.minBytes = minBytes; @@ -75,7 +82,7 @@ public FetchRequestBuilder MinBytes(int minBytes) public FetchRequest Build() { - return new FetchRequest(correlationId, clientId, maxWait, minBytes, requestMap); + return new FetchRequest(versionId, correlationId, clientId, maxWait, minBytes, requestMap); } } } diff --git a/src/KafkaNET.Library/Requests/ProducerRequest.cs b/src/KafkaNET.Library/Requests/ProducerRequest.cs index 32e3ab4..6d11b85 100644 --- a/src/KafkaNET.Library/Requests/ProducerRequest.cs +++ b/src/KafkaNET.Library/Requests/ProducerRequest.cs @@ -93,7 +93,7 @@ public ProducerRequest(int correlationId, string clientId, short requiredAcks, i /// /// /// - public ProducerRequest(int correlationId, string clientId, short requiredAcks, int ackTimeout, IDictionary messagesPerTopic) + public ProducerRequest(short versionId, int correlationId, string clientId, short requiredAcks, int ackTimeout, IDictionary messagesPerTopic) { string topicName = string.Empty; int partitionId = -1; @@ -110,7 +110,7 @@ public ProducerRequest(int correlationId, string clientId, short requiredAcks, i topics[topicName].Add(new PartitionData(partitionId, messagesSet)); } - this.VersionId = CurrentVersion; + this.VersionId = versionId; this.CorrelationId = correlationId; this.ClientId = clientId; this.RequiredAcks = requiredAcks; diff --git a/src/KafkaNET.Library/Responses/FetchResponse.cs b/src/KafkaNET.Library/Responses/FetchResponse.cs index 0e6e0f8..dc2a625 100644 --- a/src/KafkaNET.Library/Responses/FetchResponse.cs +++ b/src/KafkaNET.Library/Responses/FetchResponse.cs @@ -39,10 +39,11 @@ public FetchResponse(int correlationId, IEnumerable data) this.TopicDataDict = data.GroupBy(x => x.Topic, x => x) .ToDictionary(x => x.Key, x => x.ToList().FirstOrDefault()); } - public FetchResponse(int correlationId, IEnumerable data, int size) + public FetchResponse(int correlationId, int throttleTime, IEnumerable data, int size) { Guard.NotNull(data, "data"); this.CorrelationId = correlationId; + this.ThrottleTime = throttleTime; this.TopicDataDict = data.GroupBy(x => x.Topic, x => x) .ToDictionary(x => x.Key, x => x.ToList().FirstOrDefault()); this.Size = size; @@ -50,7 +51,9 @@ public FetchResponse(int correlationId, IEnumerable data, int size) public int Size { get; private set; } public int CorrelationId { get; private set; } + public int ThrottleTime { get; private set; } public Dictionary TopicDataDict { get; private set; } + public int ThrottleTime { get; private set; } public BufferedMessageSet MessageSet(string topic, int partition) { @@ -90,15 +93,29 @@ public PartitionData PartitionData(string topic, int partition) return new PartitionData(partition, new BufferedMessageSet(Enumerable.Empty(), partition)); } + public static Parser ParserForVersion(int versionId) + { + return new Parser(versionId); + } + public class Parser : IResponseParser { + private readonly int versionId; + + public Parser(int versionId) + { + this.versionId = versionId; + } + public FetchResponse ParseFrom(KafkaBinaryReader reader) { - int size = 0, correlationId = 0, dataCount = 0; + int size = 0, correlationId = 0, dataCount = 0, throttleTime = 0; try { size = reader.ReadInt32(); correlationId = reader.ReadInt32(); + if (versionId > 0) + throttleTime = reader.ReadInt32(); dataCount = reader.ReadInt32(); var data = new TopicData[dataCount]; for (int i = 0; i < dataCount; i++) @@ -106,7 +123,7 @@ public FetchResponse ParseFrom(KafkaBinaryReader reader) data[i] = TopicData.ParseFrom(reader); } - return new FetchResponse(correlationId, data, size); + return new FetchResponse(correlationId, throttleTime, data, size); } catch (OutOfMemoryException mex) { diff --git a/src/KafkaNET.Library/Responses/ProducerResponse.cs b/src/KafkaNET.Library/Responses/ProducerResponse.cs index 61a4179..69050b9 100644 --- a/src/KafkaNET.Library/Responses/ProducerResponse.cs +++ b/src/KafkaNET.Library/Responses/ProducerResponse.cs @@ -15,6 +15,8 @@ * limitations under the License. */ +using Kafka.Client.Messages; + namespace Kafka.Client.Responses { using Kafka.Client.Serialization; @@ -23,8 +25,15 @@ namespace Kafka.Client.Responses public class ProducerResponseStatus { + public ProducerResponseStatus() + { + this.Timestamp = Message.NoTimestampValue; + } + public ErrorMapping Error { get; set; } public long Offset { get; set; } + public int ThrottleTime { get; set; } + public long Timestamp { get; set; } public override string ToString() { return string.Format("Error:{0} Offset:{1}", this.Error, this.Offset); @@ -42,8 +51,20 @@ public ProducerResponse(int correlationId, Dictionary Statuses { get; set; } + public static Parser ParserForVersion(int versionId) + { + return new Parser(versionId); + } + public class Parser : IResponseParser { + private readonly int versionId; + + public Parser(int versionId) + { + this.versionId = versionId; + } + public ProducerResponse ParseFrom(KafkaBinaryReader reader) { var size = reader.ReadInt32(); @@ -60,12 +81,27 @@ public ProducerResponse ParseFrom(KafkaBinaryReader reader) var partitionId = reader.ReadInt32(); var error = reader.ReadInt16(); var offset = reader.ReadInt64(); + var timestamp = Message.NoTimestampValue; + var throttleTime = 0; + + if (versionId >= 2) + { + timestamp = reader.ReadInt64(); + } + + if (versionId >= 1) + { + throttleTime = reader.ReadInt32(); + } + var topicAndPartition = new TopicAndPartition(topic, partitionId); statuses.Add(topicAndPartition, new ProducerResponseStatus() { Error = ErrorMapper.ToError(error), - Offset = offset + Offset = offset, + ThrottleTime = throttleTime, + Timestamp = timestamp, }); } diff --git a/src/KafkaNET.Library/ZooKeeperIntegration/Events/ChildChangedEventItem.cs b/src/KafkaNET.Library/ZooKeeperIntegration/Events/ChildChangedEventItem.cs index bb8a18f..6c3273c 100644 --- a/src/KafkaNET.Library/ZooKeeperIntegration/Events/ChildChangedEventItem.cs +++ b/src/KafkaNET.Library/ZooKeeperIntegration/Events/ChildChangedEventItem.cs @@ -105,7 +105,7 @@ public int Count { get { - return this.childChanged != null ? this.childChanged.GetInvocationList().Count() : 0; + return this.childChanged != null ? this.childChanged.GetInvocationList().Length : 0; } } } diff --git a/src/KafkaNET.Library/ZooKeeperIntegration/Events/DataChangedEventItem.cs b/src/KafkaNET.Library/ZooKeeperIntegration/Events/DataChangedEventItem.cs index ef1cfed..49df8e6 100644 --- a/src/KafkaNET.Library/ZooKeeperIntegration/Events/DataChangedEventItem.cs +++ b/src/KafkaNET.Library/ZooKeeperIntegration/Events/DataChangedEventItem.cs @@ -154,8 +154,8 @@ public int TotalCount { get { - return (this.dataChanged != null ? this.dataChanged.GetInvocationList().Count() : 0) + - (this.dataDeleted != null ? this.dataDeleted.GetInvocationList().Count() : 0); + return (this.dataChanged != null ? this.dataChanged.GetInvocationList().Length : 0) + + (this.dataDeleted != null ? this.dataDeleted.GetInvocationList().Length : 0); } } } diff --git a/src/KafkaNET.Library/ZooKeeperIntegration/Listeners/ZKRebalancerListener.cs b/src/KafkaNET.Library/ZooKeeperIntegration/Listeners/ZKRebalancerListener.cs index e6c6a4f..64c2210 100644 --- a/src/KafkaNET.Library/ZooKeeperIntegration/Listeners/ZKRebalancerListener.cs +++ b/src/KafkaNET.Library/ZooKeeperIntegration/Listeners/ZKRebalancerListener.cs @@ -496,33 +496,19 @@ private void AddPartitionTopicInfo(ZKGroupTopicDirs topicDirs, string partition, } var leader = leaderOpt.Value; var znode = topicDirs.ConsumerOffsetDir + "/" + partition; - var offsetString = this.zkClient.ReadData(znode, true); + + var offsetCommitedString = this.zkClient.ReadData(znode, true); //if first time starting a consumer, set the initial offset based on the config - long offset = 0; - long offsetCommited = 0; - if (offsetString == null) + long offset = -1; + long offsetCommited = -1; + if (offsetCommitedString != null) { - switch (config.AutoOffsetReset) - { - case OffsetRequest.SmallestTime: - offset = this.EarliestOrLatestOffset(topic, leader, partitionId, OffsetRequest.EarliestTime); - break; - case OffsetRequest.LargestTime: - offset = this.EarliestOrLatestOffset(topic, leader, partitionId, OffsetRequest.LatestTime); - break; - default: - throw new ConfigurationErrorsException("Wrong value in autoOffsetReset in ConsumerConfig"); - } - } - else - { - offsetCommited = long.Parse(offsetString); - long latestOffset = this.EarliestOrLatestOffset(topic, leader, partitionId, OffsetRequest.LatestTime); - offset = Math.Min(offsetCommited + 1, latestOffset); - Logger.InfoFormat("Final offset {0} for topic {1} partition {2} OffsetCommited {3} latestOffset {4}" - , offset, topic, partition, offsetCommited, latestOffset); + offsetCommited = long.Parse(offsetCommitedString); + offset = offsetCommited + 1; } + Logger.InfoFormat("Final offset {0} for topic {1} partition {2} OffsetCommited {3}" + , offset, topic, partition, offsetCommited); var queue = this.queues[new Tuple(topic, consumerThreadId)]; var partTopicInfo = new PartitionTopicInfo( @@ -530,7 +516,7 @@ private void AddPartitionTopicInfo(ZKGroupTopicDirs topicDirs, string partition, leader, partitionId, queue, - offset, + offsetCommited, offset, offset, this.config.FetchSize, @@ -539,32 +525,6 @@ private void AddPartitionTopicInfo(ZKGroupTopicDirs topicDirs, string partition, Logger.InfoFormat("{0} selected new offset {1}", partTopicInfo, offset); } - private long EarliestOrLatestOffset(string topic, int brokerId, int partitionId, long earliestIoLatest) - { - Consumer consumer = null; - long producedOffset = -1; - try - { - var cluster = new Cluster(this.zkClient); - var broker = cluster.GetBroker(brokerId); - if (broker == null) - { - throw new IllegalStateException(string.Format("Broker {0} is unavailable. Cannot issue GetOffsetsBefore request", brokerId)); - } - consumer = new Consumer(this.config, broker.Host, broker.Port); - var requestInfos = new Dictionary>(); - requestInfos[topic] = new List() { new PartitionOffsetRequestInfo(partitionId, earliestIoLatest, 1) }; - var offsets = consumer.GetOffsetsBefore(new OffsetRequest(requestInfos)); - - producedOffset = offsets.ResponseMap[topic].First().Offsets[0]; - } - catch (Exception ex) - { - Logger.ErrorFormat("error in EarliestOrLatestOffset() : {0}", ex.FormatException()); - } - return producedOffset; - } - private void ReleasePartitionOwnership(IDictionary> topicThreadIdsMap) { diff --git a/src/KafkaNET.Library/packages.config b/src/KafkaNET.Library/packages.config new file mode 100644 index 0000000..3a86f25 --- /dev/null +++ b/src/KafkaNET.Library/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/KafkaNETLibraryConsole/KafkaNETLibraryConsole.csproj b/src/KafkaNETLibraryConsole/KafkaNETLibraryConsole.csproj index 62528f7..1036a99 100644 --- a/src/KafkaNETLibraryConsole/KafkaNETLibraryConsole.csproj +++ b/src/KafkaNETLibraryConsole/KafkaNETLibraryConsole.csproj @@ -106,7 +106,7 @@ ..\packages\ZooKeeper.Net.3.4.6.2\lib\net40\ZooKeeperNet.dll - True + true @@ -117,6 +117,7 @@ Designer + @@ -150,4 +151,4 @@ --> - \ No newline at end of file + diff --git a/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.exe.config b/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.exe.config deleted file mode 100644 index d405b96..0000000 --- a/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.exe.config +++ /dev/null @@ -1,78 +0,0 @@ - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.vshost.exe b/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.vshost.exe deleted file mode 100644 index 8f90da4..0000000 Binary files a/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.vshost.exe and /dev/null differ diff --git a/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.vshost.exe.config b/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.vshost.exe.config deleted file mode 100644 index d405b96..0000000 --- a/src/KafkaNETLibraryConsole/bin/Debug/KafkaNETLibraryConsole.vshost.exe.config +++ /dev/null @@ -1,78 +0,0 @@ - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/KafkaNETLibraryConsole/obj/Debug/KafkaNETLibraryConsole.csproj.FileListAbsolute.txt b/src/KafkaNETLibraryConsole/obj/Debug/KafkaNETLibraryConsole.csproj.FileListAbsolute.txt deleted file mode 100644 index a3912b3..0000000 --- a/src/KafkaNETLibraryConsole/obj/Debug/KafkaNETLibraryConsole.csproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -C:\Users\raiamand\Source\Repos\Kafkanet\src\KafkaNETLibraryConsole\bin\Debug\KafkaNETLibraryConsole.exe.config diff --git a/src/KafkaNETLibraryConsole/packages.config b/src/KafkaNETLibraryConsole/packages.config new file mode 100644 index 0000000..e666a5c --- /dev/null +++ b/src/KafkaNETLibraryConsole/packages.config @@ -0,0 +1,5 @@ + + + + + diff --git a/src/packages/FluentAssertions.2.2.0.0/FluentAssertions.2.2.0.0.nupkg b/src/packages/FluentAssertions.2.2.0.0/FluentAssertions.2.2.0.0.nupkg deleted file mode 100644 index 19737e7..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/FluentAssertions.2.2.0.0.nupkg and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.dll b/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.dll deleted file mode 100644 index a838fd6..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.pdb deleted file mode 100644 index 1d09022..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.xml b/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.xml deleted file mode 100644 index f0ae5d4..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.xml +++ /dev/null @@ -1,6600 +0,0 @@ - - - - FluentAssertions - - - - - Provides extension methods for monitoring and querying events. - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a succesful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Defines a strategy for handling failures in a . - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Initializes a new instance of the class. - - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Collection of s. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - The message must match exactly, including the casing of the characters. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined byt he constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Specify the condition that must be satisfied. - - If true the assertion will be succesful. - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the assertion. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Discards and returns the failures that happened up to now. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Gets data associated with the current scope and identified by . - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Represents a collection of data items that are associated with an . - - -
-
diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.dll b/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.dll deleted file mode 100644 index d35f971..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.pdb deleted file mode 100644 index 25b9633..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.xml b/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.xml deleted file mode 100644 index 5cafcf2..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.xml +++ /dev/null @@ -1,6720 +0,0 @@ - - - - FluentAssertions - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - Provides extension methods for monitoring and querying events. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a succesful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Defines a strategy for handling failures in a . - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Specify the condition that must be satisfied. - - If true the assertion will be succesful. - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the assertion. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Discards and returns the failures that happened up to now. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Gets data associated with the current scope and identified by . - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - The message must match exactly, including the casing of the characters. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Collection of s. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined byt he constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - -
-
diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.dll b/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.dll deleted file mode 100644 index 60da7c6..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.pdb deleted file mode 100644 index d9391d9..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.xml b/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.xml deleted file mode 100644 index 5cafcf2..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.xml +++ /dev/null @@ -1,6720 +0,0 @@ - - - - FluentAssertions - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - Provides extension methods for monitoring and querying events. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a succesful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Defines a strategy for handling failures in a . - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Specify the condition that must be satisfied. - - If true the assertion will be succesful. - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the assertion. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Discards and returns the failures that happened up to now. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Gets data associated with the current scope and identified by . - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - The message must match exactly, including the casing of the characters. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Collection of s. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined byt he constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - -
-
diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll b/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll deleted file mode 100644 index 14ae808..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.pdb deleted file mode 100644 index c002f59..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml b/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml deleted file mode 100644 index 33e2751..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml +++ /dev/null @@ -1,6336 +0,0 @@ - - - - FluentAssertions.WindowsPhone - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a succesful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Defines a strategy for handling failures in a . - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Specify the condition that must be satisfied. - - If true the assertion will be succesful. - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the assertion. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Discards and returns the failures that happened up to now. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Gets data associated with the current scope and identified by . - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - The message must match exactly, including the casing of the characters. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Collection of s. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined byt he constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - -
-
diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.dll b/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.dll deleted file mode 100644 index 744e99e..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.pdb deleted file mode 100644 index 6a63343..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.xml b/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.xml deleted file mode 100644 index b7b2c7f..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.xml +++ /dev/null @@ -1,6398 +0,0 @@ - - - - FluentAssertions.Silverlight - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a succesful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Defines a strategy for handling failures in a . - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Specify the condition that must be satisfied. - - If true the assertion will be succesful. - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the assertion. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Discards and returns the failures that happened up to now. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Gets data associated with the current scope and identified by . - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - The message must match exactly, including the casing of the characters. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Collection of s. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined byt he constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - -
-
diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll b/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll deleted file mode 100644 index 9313918..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb deleted file mode 100644 index 6096960..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml b/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml deleted file mode 100644 index f8009f5..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml +++ /dev/null @@ -1,3429 +0,0 @@ - - - - Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight - - - - - UrlToTest specifies the url that should be requested to give context to the test. - - - - - An unused attribute. - - - - - - Gets the URL to test. - - - - - AspNetDevelopmentServer specifies the settings to be used for the - ASP.NET Development Server for the test. - - - - - Initializes the AspNetDevelopmentServerAttribute. - - The name. - The path to web app. - - - - Initializes the AspNetDevelopmentServerAttribute. - - The name. - The path to web app. - The web app root. - - - - Gets the name. - - - - - Gets the PathToWebApp. - - - - - Gets the web app root. - - - - - AspNetDevelopmentServerHost specifies the settings to be used when - ASP.NET Development Server is the host server for the test. - - - - - Initializes the AspNetDevelopmentServerHostAttribute. - - The path to the web app. - - - - Initializes the AspNetDevelopmentServerHostAttribute. - - The path to the web app. - The web app root. - - - - Gets the path to the web application. - - - - - Gets the WebAppRoot. - - - - - For ASP.NET sites that require basic authentication, specify the - user name and password using the Credential attribute. - WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code - and assembly to protect this sensitive information. - - - - - Specify the user name and password needed to access the web site under test. - - The user name. - - The password. WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code and assembly - to protect this sensitive information. - - - - - Specify the user name, password, and domain needed to access the web site under test. - - The user name. - - The password. WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code and assembly - to protect this sensitive information. - - The domain. - - - - Gets the user name. - - - - - Gets the password. - - - - - Gets the domain. - - - - - Base class for Framework Exceptions, provides localization trick so that messages are in HA locale. - - - - - Initializes a new UnitTestAssertException. - - - - - Initializes UnitTestAssertException. - - The message. - - - - Gets the Message string. - - - - - AssertFailedException class. Used to indicate failure for a test case - - - - - Initializes a new AssertFailedException. - - The message. - - - - AssertFailedException - - The message. - The inner exception. - - - - The AssertInconclusiveException class. - - - - - Initializes a new AssertInconclusiveException. - - The message. - - - - Initializes a new AssertInconclusiveException. - - The message. - The inner exception. - - - - Initializes a new AssertInconclusiveException. - - - - - InternalTestFailureException class. Used to indicate internal failure - for a test case. - - - - - Initializes a new InternalTestFailureException. - - The message. - - - - Initializes a new InternalTestFailureException. - - The message. - The inner exception. - - - - Initializes a new InternalTestFailureException. - - - - - A collection of helper classes to test various conditions within - unit tests. If the condition being tested is not met, an exception - is thrown. - - - - - - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - The message to include in the exception when - is false. The message is shown in test results. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - The message to include in the exception when - is false. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is false. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - The message to include in the exception when - is true. The message is shown in test results. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - The message to include in the exception when - is true. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is true. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - The message to include in the exception when - is not null. The message is shown in test results. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - The message to include in the exception when - is not null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - The message to include in the exception when - is null. The message is shown in test results. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - The message to include in the exception when - is null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null. - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Throws an AssertFailedException. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Helper function that creates and throws an AssertionFailedException. - - name of the assertion throwing an exception. - message describing conditions for assertion failure. - The parameters. - - - - Checks the parameter for valid conditions - - The parameter. - The assertion name. - The parameter name. - The message. - The parameters. - - - - Safely converts an object to a string, handling null values and null characters. - Null values are converted to "(null)". Null characters are converted to "\\0". - - The object to convert to a string. - The converted string. - - - - Replaces null characters ('\0') with "\\0". - - The string to search. - The converted string with null characters replaced by "\\0". - - - - An exception from reflection will always be a TargetInvocationException - however - the goal of Private Accessors is to be seamless to the original code. - The only problem with throwing the inner exception is that the stack trace will - be overwritten. From here we register the stack trace of the inner exception - and then throw it. The Unit Test Adapter will then later rebuild the stack - from the cached shadow information plus the remaining stack from this throw. - - - - - - A collection of helper classes to test various conditions associated - with collections within unit tests. If the condition being tested is not - met, an exception is thrown. - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if is found in - . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if every element in is also found in - . - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Constructs a dictionary containing the number of occurrences of each - element in the specified collection. - - - The collection to process. - - - The number of null elements in the collection. - - - A dictionary containing the number of occurrences of each element - in the specified collection. - - - - - Determines whether the first collection is a subset of the second - collection. If either set contains duplicate elements, the number - of occurrences of the element in the subset must be less than or - equal to the number of occurrences in the superset. - - - The collection the test expects to be contained in . - - - The collection the test expects to contain . - - - True if is a subset of - , false otherwise. - - - - - Finds a mismatched element between the two collections. A mismatched - element is one that appears a different number of times in the - expected collection than it does in the actual collection. The - collections are assumed to be different non-null references with the - same number of elements. The caller is responsible for this level of - verification. If there is no mismatched element, the function returns - false and the out parameters should not be used. - - The first collection to compare. - The second collection to compare. - - The expected number of occurrences of - or 0 if there is no mismatched - element. - - - The actual number of occurrences of - or 0 if there is no mismatched - element. - - - The mismatched element (may be null) or null if there is no - mismatched element. - - - true if a mismatched element was found; false otherwise. - - - - - compares the objects using object.Equals - - - - - This class is designed to help user doing unit testing. - GenericParameterHelper satisfies some comment generic type constraints - such as: - 1. public default constructor - 2. implements common interface: IComparable, IEnumerable, ICloneable - - - - - - public default constructor, satisfies the constraint in C# generics. - This constructor initializes the Data property to a random value. - - - - - This constructor initializes the Data property to a user-supplied value - - - - - - Do the value comparison for two GenericParameterHelper object - - object to do comparison with - true if obj has the same value as 'this' GenericParameterHelper object. - false otherwise. - - - - Returns a hash code for this object. - - - - - - Compares to the object. - - - - - - - Returns an IEnumerator object whose length is derived from - the Data property. - - - - - - Returns a GenericParameterHelper object that is equal to - 'this' one. - - - - - - Gets or sets the Data property. - - - - - Provides method signature discovery for generic methods. - - - - - Given a set of methods that match the base criteria, select a method based - upon an array of types. This method should return null if no method matches - the criteria. - - - - - Set of string assertions. - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not end with - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if does not match - . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if matches . - - - - - TestContext class. This class should be fully abstract and not contain any - members. The adapter will implement the members. Users in the framework should - only access this via a well-defined interface. - - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Adds a file name to the list in TestResult.ResultFileNames - - - - - Begins a timer with the specified name - - - - - Ends a timer with the specified name - - - - - Per test properties - - - - - - Current data row when test is used for data driven testing. - - - - - Current data connection row when test is used for data driven testing. - - - - - Gets the test logs directory. - - - - - Gets the test directory. - - - - - Gets the test deployment directory. - - - - - Gets the test name. - - - - - Gets the CurrentTestOutcome. - - - - - Outcome of a test or a run. - If a new successful state needs to be added you will need to modify - RunResultAndStatistics in TestRun and TestOutcomeHelper below. - - NOTE: the order is important and is used for computing outcome for aggregations. - More important outcomes come first. See TestOutcomeHelper.GetAggregationOutcome. - - - - - Test was executed, but there were issues. - Issues may involve exceptions or failed assertions. - - - - - Test has completed, but we can't say if it passed or failed. - May be used for aborted tests... - - - - - Test was executed w/o any issues. - - - - - Test is currently executing. - - - - - There was a system error while we were trying to execute a test. - - - - - The test timed out. - - - - - Test was aborted by the user. - - - - - Test is in an unknown state - - - - - The data row. - - - - - The database connection. - - - - - Marks a test class. - - - - - Initializes a new test class attribute. - - - - - Marks a test method. - - - - - Initializes a new TestMethodAttribute. - - - - - A method marker called before a test method runs. - - - - - Initializes a new TestInitializeAttribute. - - - - - A method marker called after a test method runs. - - - - - Initializes a new TestCleanupAttribute. - - - - - Ignores a unit test. - - - - - Initializes a new IgnoreAttribute. - - - - - The ExpectedExceptionAttribute. - - - - - Initializes the ExpectedExceptionAttribute. - - The exception type. - - - - Initializes the ExpectedExceptionAttribute. - - The exception type. - The message. - - - - Gets the exception type. - - - - - Gets the message. - - - - - The test property attribute. - - - - - Initializes the TestPropertyAttribute. - - - - - - - Gets the name. - - - - - Gets the value. - - - - - The ClassInitializeAttribute. - - - - - Initializes the ClassInitializeAttribute. - - - - - The ClassCleanupAttribute. - - - - - Initializes the ClassCleanupAttribute. - - - - - The AssemblyInitializeAttribute. - - - - - Initializes the AssemblyInitializeAttribute. - - - - - The AssemblyCleanupAttribute. - - - - - Initializes the AssemblyCleanupAttribute. - - - - - Description of the test. - - - - - Initializes the DescriptionAttribute. - - The description. - - - - Gets the description. - - - - - The OwnerAttribute. - - - - - Initializes the OwnerAttribute. - - The owner. - - - - Gets the owner. - - - - - CSS Project Structure URI. - - - - - Initializes the CSS Project Structure URI. - - The structure. - - - - Gets the property structure. - - - - - CSS Iteration URI - - - - - Initializes the CssIterationAttribute. - - The parameter. - - - - Gets the CssIteration. - - - - - Priority attribute; used to specify the priority of a unit test. - - - - - Initializes the PriorityAttribute. - - The priority. - - - - Gets the Priority. - - - - - Timeout attribute; used to specify the timeout of a unit test. - - - - - Initializes the TimeoutAttribute. - - - - - - Gets the Timeout. - - - - - WorkItem attribute; used to specify a work item associated with this test. - - - - - Initializes the WorkItemAttribute. - - - - - - Gets the ID. - - - - - HostType specifies the type of host that this unit test will - run in. - - - - - Initializes the host type attribute. - - - - - - Constructor of HostTypeAttribute. - - The type of the host. - Custom data for the host adapter. - - - The reason this is string (and not object) is that currently CMI cannot parse arbitrary instances of object and we deprioritized changing CMI. - - - - Gets the host type. - - - - - Gets the host data. - - - - - Used to specify deployment item (file or directory) for per-test deployment. - Can be specified on test class or test method. - Can have multiple instances of the attribute to specify more than one item. - The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initializes DeploymentItemAttribute. - - The path. - - - - Initializes DeploymentItemAttribute. - - The path. - The output directory. - - - - Verifiable interface. - - - - - The IsValid method. - - Returns a value. - - - diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.dll b/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.dll deleted file mode 100644 index 470a6e5..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.pdb b/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.pdb deleted file mode 100644 index d48cc25..0000000 Binary files a/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.xml b/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.xml deleted file mode 100644 index b3bfd8d..0000000 --- a/src/packages/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.xml +++ /dev/null @@ -1,6518 +0,0 @@ - - - - FluentAssertions - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - Provides extension methods for monitoring and querying events. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a succesful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Defines a strategy for handling failures in a . - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Specify the condition that must be satisfied. - - If true the assertion will be succesful. - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the assertion. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Discards and returns the failures that happened up to now. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Gets data associated with the current scope and identified by . - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Simulates the AppDomain class that is not available in Windows Store apps. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - The message must match exactly, including the casing of the characters. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the property refered to by the current is relevant. - - - - - Collection of s. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined byt he constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/FluentAssertions.4.2.2.nupkg b/src/packages/FluentAssertions.4.2.2/FluentAssertions.4.2.2.nupkg deleted file mode 100644 index 52d6719..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/FluentAssertions.4.2.2.nupkg and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.Core.dll deleted file mode 100644 index a126ab9..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.Core.pdb deleted file mode 100644 index 4273578..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.dll deleted file mode 100644 index 81a7e07..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.pdb deleted file mode 100644 index 0426ddf..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.xml deleted file mode 100644 index 6f77240..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/dotnet/FluentAssertions.xml +++ /dev/null @@ -1,1189 +0,0 @@ - - - - FluentAssertions - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Provides methods for asserting that the execution time of an satisfies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satisfies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/monoandroid/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/monotouch/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.dll deleted file mode 100644 index a00cb78..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.pdb deleted file mode 100644 index 4e56b25..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.xml deleted file mode 100644 index 0c81449..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/net40/FluentAssertions.xml +++ /dev/null @@ -1,1381 +0,0 @@ - - - - FluentAssertions - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all members. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all members. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all members. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring for its events. - - The object for which to monitor the events. - Thrown if is Null. - - - - Starts monitoring for events defined in the type parameter . - - The object for which to monitor the events. - The type defining the events it should monitor. - Thrown if is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that an assembly does not reference the specified assembly. - - The assembly which should not be referenced. - - - - Asserts that an assembly does not reference the specified assembly. - - The assembly which should not be referenced. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an assembly references the specified assembly. - - The assembly which should be referenced. - - - - Asserts that an assembly references the specified assembly. - - The assembly which should be referenced. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Provides methods for asserting that the execution time of an satisfies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satisfies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.dll deleted file mode 100644 index 03663a4..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.pdb deleted file mode 100644 index efbb33b..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.xml deleted file mode 100644 index 0c81449..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/net45/FluentAssertions.xml +++ /dev/null @@ -1,1381 +0,0 @@ - - - - FluentAssertions - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all members. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all members. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all members. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring for its events. - - The object for which to monitor the events. - Thrown if is Null. - - - - Starts monitoring for events defined in the type parameter . - - The object for which to monitor the events. - The type defining the events it should monitor. - Thrown if is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that an assembly does not reference the specified assembly. - - The assembly which should not be referenced. - - - - Asserts that an assembly does not reference the specified assembly. - - The assembly which should not be referenced. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an assembly references the specified assembly. - - The assembly which should be referenced. - - - - Asserts that an assembly references the specified assembly. - - The assembly which should be referenced. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Provides methods for asserting that the execution time of an satisfies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satisfies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/portable-monotouch+monoandroid+xamarin.ios/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.XML b/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.XML deleted file mode 100644 index 745d2d6..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.XML +++ /dev/null @@ -1,1191 +0,0 @@ - - - - FluentAssertions - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.dll deleted file mode 100644 index 776e5dc..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.pdb deleted file mode 100644 index ed26fd6..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-net40+sl5+win8+wp8+wpa81/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.dll deleted file mode 100644 index a24bb78..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.pdb deleted file mode 100644 index edd3dc8..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.pri b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.pri deleted file mode 100644 index 337cca0..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.pri and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.xml deleted file mode 100644 index 0003d7d..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/portable-win81+wpa81/FluentAssertions.xml +++ /dev/null @@ -1,1184 +0,0 @@ - - - - FluentAssertions - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Simulates the AppDomain class that is not available in Windows Store apps. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Provides methods for asserting that the execution time of an satisfies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satisfies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.dll deleted file mode 100644 index 09e9603..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.pdb deleted file mode 100644 index c201824..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.xml deleted file mode 100644 index 7b6631b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/sl5/FluentAssertions.xml +++ /dev/null @@ -1,1157 +0,0 @@ - - - - FluentAssertions - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.CSharp.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.CSharp.dll deleted file mode 100644 index 2e22fc7..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.CSharp.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.CSharp.xml b/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.CSharp.xml deleted file mode 100644 index 8f9dc37..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.CSharp.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - Microsoft.CSharp - - - - Contains factory methods to create dynamic call site binders for CSharp. - - - Initializes a new CSharp binary operation binder. - Returns a new CSharp binary operation binder. - The flags with which to initialize the binder. - The binary operation kind. - The object that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp convert binder. - Returns a new CSharp convert binder. - The flags with which to initialize the binder. - The type to convert to. - The object that indicates where this operation is used. - - - Initializes a new CSharp get index binder. - Returns a new CSharp get index binder. - The flags with which to initialize the binder. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp get member binder. - Returns a new CSharp get member binder. - The flags with which to initialize the binder. - The name of the member to get. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp invoke binder. - Returns a new CSharp invoke binder. - The flags with which to initialize the binder. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp invoke constructor binder. - Returns a new CSharp invoke constructor binder. - The flags with which to initialize the binder. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp invoke member binder. - Returns a new CSharp invoke member binder. - The flags with which to initialize the binder. - The name of the member to invoke. - The list of type arguments specified for this invoke. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp is event binder. - Returns a new CSharp is event binder. - The flags with which to initialize the binder. - The name of the event to look for. - The that indicates where this operation is used. - - - Initializes a new CSharp set index binder. - Returns a new CSharp set index binder. - The flags with which to initialize the binder. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp set member binder. - Returns a new CSharp set member binder. - The flags with which to initialize the binder. - The name of the member to set. - The that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Initializes a new CSharp unary operation binder. - Returns a new CSharp unary operation binder. - The flags with which to initialize the binder. - The unary operation kind. - The object that indicates where this operation is used. - The sequence of instances for the arguments to this operation. - - - Represents information about C# dynamic operations that are specific to particular arguments at a call site. Instances of this class are generated by the C# compiler. - - - Initializes a new instance of the class. - A new instance of the class. - The flags for the argument. - The name of the argument, if named; otherwise null. - - - Represents information about C# dynamic operations that are specific to particular arguments at a call site. Instances of this class are generated by the C# compiler. - - - No additional information to represent. - - - The argument's compile-time type should be considered during binding. - - - The argument is a constant. - - - The argument is a named argument. - - - The argument is passed to a ref parameter. - - - The argument is passed to an out parameter. - - - The argument is a indicating an actual type name used in source. Used only for target objects in static calls. - - - Represents information about C# dynamic operations that are not specific to particular arguments at a call site. Instances of this class are generated by the C# compiler. - - - There is no additional information required for this binder. - - - The evaluation of this binder happens in a checked context. - - - The binder represents an invoke on a simple name. - - - The binder represents an invoke on a specialname. - - - The binder represents a logical AND or logical OR that is part of a conditional logical operator evaluation. - - - The binder represents an explicit conversion. - - - The binder represents an implicit conversion for use in an array creation expression. - - - The result of any bind is going to be indexed get a set index or get index binder. - - - The value in this set index or set member comes a compound assignment operator. - - - The binder is used in a position that does not require a result, and can therefore bind to a void returning method. - - - Represents an error that occurs when a dynamic bind in the C# runtime binder is processed. - - - Initializes a new instance of the class. - - - Initializes a new instance of the class that has a specified error message. - The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.The error message that explains the reason for the exception. - - - Initializes a new instance of the class that has a specified error message and a reference to the inner exception that is the cause of this exception. - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference if no inner exception is specified. - - - Represents an error that occurs when a dynamic bind in the C# runtime binder is processed. - - - Initializes a new instance of the class with a system-supplied message that describes the error. - - - Initializes a new instance of the class with a specified message that describes the error. - The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. - - - Initializes a new instance of the class that has a specified error message and a reference to the inner exception that is the cause of this exception. - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference if no inner exception is specified. - - - \ No newline at end of file diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll deleted file mode 100644 index 9313918..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml b/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml deleted file mode 100644 index f8009f5..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/sl5/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml +++ /dev/null @@ -1,3429 +0,0 @@ - - - - Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight - - - - - UrlToTest specifies the url that should be requested to give context to the test. - - - - - An unused attribute. - - - - - - Gets the URL to test. - - - - - AspNetDevelopmentServer specifies the settings to be used for the - ASP.NET Development Server for the test. - - - - - Initializes the AspNetDevelopmentServerAttribute. - - The name. - The path to web app. - - - - Initializes the AspNetDevelopmentServerAttribute. - - The name. - The path to web app. - The web app root. - - - - Gets the name. - - - - - Gets the PathToWebApp. - - - - - Gets the web app root. - - - - - AspNetDevelopmentServerHost specifies the settings to be used when - ASP.NET Development Server is the host server for the test. - - - - - Initializes the AspNetDevelopmentServerHostAttribute. - - The path to the web app. - - - - Initializes the AspNetDevelopmentServerHostAttribute. - - The path to the web app. - The web app root. - - - - Gets the path to the web application. - - - - - Gets the WebAppRoot. - - - - - For ASP.NET sites that require basic authentication, specify the - user name and password using the Credential attribute. - WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code - and assembly to protect this sensitive information. - - - - - Specify the user name and password needed to access the web site under test. - - The user name. - - The password. WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code and assembly - to protect this sensitive information. - - - - - Specify the user name, password, and domain needed to access the web site under test. - - The user name. - - The password. WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code and assembly - to protect this sensitive information. - - The domain. - - - - Gets the user name. - - - - - Gets the password. - - - - - Gets the domain. - - - - - Base class for Framework Exceptions, provides localization trick so that messages are in HA locale. - - - - - Initializes a new UnitTestAssertException. - - - - - Initializes UnitTestAssertException. - - The message. - - - - Gets the Message string. - - - - - AssertFailedException class. Used to indicate failure for a test case - - - - - Initializes a new AssertFailedException. - - The message. - - - - AssertFailedException - - The message. - The inner exception. - - - - The AssertInconclusiveException class. - - - - - Initializes a new AssertInconclusiveException. - - The message. - - - - Initializes a new AssertInconclusiveException. - - The message. - The inner exception. - - - - Initializes a new AssertInconclusiveException. - - - - - InternalTestFailureException class. Used to indicate internal failure - for a test case. - - - - - Initializes a new InternalTestFailureException. - - The message. - - - - Initializes a new InternalTestFailureException. - - The message. - The inner exception. - - - - Initializes a new InternalTestFailureException. - - - - - A collection of helper classes to test various conditions within - unit tests. If the condition being tested is not met, an exception - is thrown. - - - - - - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - The message to include in the exception when - is false. The message is shown in test results. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - The message to include in the exception when - is false. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is false. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - The message to include in the exception when - is true. The message is shown in test results. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - The message to include in the exception when - is true. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is true. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - The message to include in the exception when - is not null. The message is shown in test results. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - The message to include in the exception when - is not null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - The message to include in the exception when - is null. The message is shown in test results. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - The message to include in the exception when - is null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null. - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Throws an AssertFailedException. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Helper function that creates and throws an AssertionFailedException. - - name of the assertion throwing an exception. - message describing conditions for assertion failure. - The parameters. - - - - Checks the parameter for valid conditions - - The parameter. - The assertion name. - The parameter name. - The message. - The parameters. - - - - Safely converts an object to a string, handling null values and null characters. - Null values are converted to "(null)". Null characters are converted to "\\0". - - The object to convert to a string. - The converted string. - - - - Replaces null characters ('\0') with "\\0". - - The string to search. - The converted string with null characters replaced by "\\0". - - - - An exception from reflection will always be a TargetInvocationException - however - the goal of Private Accessors is to be seamless to the original code. - The only problem with throwing the inner exception is that the stack trace will - be overwritten. From here we register the stack trace of the inner exception - and then throw it. The Unit Test Adapter will then later rebuild the stack - from the cached shadow information plus the remaining stack from this throw. - - - - - - A collection of helper classes to test various conditions associated - with collections within unit tests. If the condition being tested is not - met, an exception is thrown. - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if is found in - . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if every element in is also found in - . - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Constructs a dictionary containing the number of occurrences of each - element in the specified collection. - - - The collection to process. - - - The number of null elements in the collection. - - - A dictionary containing the number of occurrences of each element - in the specified collection. - - - - - Determines whether the first collection is a subset of the second - collection. If either set contains duplicate elements, the number - of occurrences of the element in the subset must be less than or - equal to the number of occurrences in the superset. - - - The collection the test expects to be contained in . - - - The collection the test expects to contain . - - - True if is a subset of - , false otherwise. - - - - - Finds a mismatched element between the two collections. A mismatched - element is one that appears a different number of times in the - expected collection than it does in the actual collection. The - collections are assumed to be different non-null references with the - same number of elements. The caller is responsible for this level of - verification. If there is no mismatched element, the function returns - false and the out parameters should not be used. - - The first collection to compare. - The second collection to compare. - - The expected number of occurrences of - or 0 if there is no mismatched - element. - - - The actual number of occurrences of - or 0 if there is no mismatched - element. - - - The mismatched element (may be null) or null if there is no - mismatched element. - - - true if a mismatched element was found; false otherwise. - - - - - compares the objects using object.Equals - - - - - This class is designed to help user doing unit testing. - GenericParameterHelper satisfies some comment generic type constraints - such as: - 1. public default constructor - 2. implements common interface: IComparable, IEnumerable, ICloneable - - - - - - public default constructor, satisfies the constraint in C# generics. - This constructor initializes the Data property to a random value. - - - - - This constructor initializes the Data property to a user-supplied value - - - - - - Do the value comparison for two GenericParameterHelper object - - object to do comparison with - true if obj has the same value as 'this' GenericParameterHelper object. - false otherwise. - - - - Returns a hash code for this object. - - - - - - Compares to the object. - - - - - - - Returns an IEnumerator object whose length is derived from - the Data property. - - - - - - Returns a GenericParameterHelper object that is equal to - 'this' one. - - - - - - Gets or sets the Data property. - - - - - Provides method signature discovery for generic methods. - - - - - Given a set of methods that match the base criteria, select a method based - upon an array of types. This method should return null if no method matches - the criteria. - - - - - Set of string assertions. - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not end with - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if does not match - . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if matches . - - - - - TestContext class. This class should be fully abstract and not contain any - members. The adapter will implement the members. Users in the framework should - only access this via a well-defined interface. - - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Adds a file name to the list in TestResult.ResultFileNames - - - - - Begins a timer with the specified name - - - - - Ends a timer with the specified name - - - - - Per test properties - - - - - - Current data row when test is used for data driven testing. - - - - - Current data connection row when test is used for data driven testing. - - - - - Gets the test logs directory. - - - - - Gets the test directory. - - - - - Gets the test deployment directory. - - - - - Gets the test name. - - - - - Gets the CurrentTestOutcome. - - - - - Outcome of a test or a run. - If a new successful state needs to be added you will need to modify - RunResultAndStatistics in TestRun and TestOutcomeHelper below. - - NOTE: the order is important and is used for computing outcome for aggregations. - More important outcomes come first. See TestOutcomeHelper.GetAggregationOutcome. - - - - - Test was executed, but there were issues. - Issues may involve exceptions or failed assertions. - - - - - Test has completed, but we can't say if it passed or failed. - May be used for aborted tests... - - - - - Test was executed w/o any issues. - - - - - Test is currently executing. - - - - - There was a system error while we were trying to execute a test. - - - - - The test timed out. - - - - - Test was aborted by the user. - - - - - Test is in an unknown state - - - - - The data row. - - - - - The database connection. - - - - - Marks a test class. - - - - - Initializes a new test class attribute. - - - - - Marks a test method. - - - - - Initializes a new TestMethodAttribute. - - - - - A method marker called before a test method runs. - - - - - Initializes a new TestInitializeAttribute. - - - - - A method marker called after a test method runs. - - - - - Initializes a new TestCleanupAttribute. - - - - - Ignores a unit test. - - - - - Initializes a new IgnoreAttribute. - - - - - The ExpectedExceptionAttribute. - - - - - Initializes the ExpectedExceptionAttribute. - - The exception type. - - - - Initializes the ExpectedExceptionAttribute. - - The exception type. - The message. - - - - Gets the exception type. - - - - - Gets the message. - - - - - The test property attribute. - - - - - Initializes the TestPropertyAttribute. - - - - - - - Gets the name. - - - - - Gets the value. - - - - - The ClassInitializeAttribute. - - - - - Initializes the ClassInitializeAttribute. - - - - - The ClassCleanupAttribute. - - - - - Initializes the ClassCleanupAttribute. - - - - - The AssemblyInitializeAttribute. - - - - - Initializes the AssemblyInitializeAttribute. - - - - - The AssemblyCleanupAttribute. - - - - - Initializes the AssemblyCleanupAttribute. - - - - - Description of the test. - - - - - Initializes the DescriptionAttribute. - - The description. - - - - Gets the description. - - - - - The OwnerAttribute. - - - - - Initializes the OwnerAttribute. - - The owner. - - - - Gets the owner. - - - - - CSS Project Structure URI. - - - - - Initializes the CSS Project Structure URI. - - The structure. - - - - Gets the property structure. - - - - - CSS Iteration URI - - - - - Initializes the CssIterationAttribute. - - The parameter. - - - - Gets the CssIteration. - - - - - Priority attribute; used to specify the priority of a unit test. - - - - - Initializes the PriorityAttribute. - - The priority. - - - - Gets the Priority. - - - - - Timeout attribute; used to specify the timeout of a unit test. - - - - - Initializes the TimeoutAttribute. - - - - - - Gets the Timeout. - - - - - WorkItem attribute; used to specify a work item associated with this test. - - - - - Initializes the WorkItemAttribute. - - - - - - Gets the ID. - - - - - HostType specifies the type of host that this unit test will - run in. - - - - - Initializes the host type attribute. - - - - - - Constructor of HostTypeAttribute. - - The type of the host. - Custom data for the host adapter. - - - The reason this is string (and not object) is that currently CMI cannot parse arbitrary instances of object and we deprioritized changing CMI. - - - - Gets the host type. - - - - - Gets the host data. - - - - - Used to specify deployment item (file or directory) for per-test deployment. - Can be specified on test class or test method. - Can have multiple instances of the attribute to specify more than one item. - The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initializes DeploymentItemAttribute. - - The path. - - - - Initializes DeploymentItemAttribute. - - The path. - The output directory. - - - - Verifiable interface. - - - - - The IsValid method. - - Returns a value. - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/System.Xml.Linq.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/System.Xml.Linq.dll deleted file mode 100644 index 7fedd14..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/System.Xml.Linq.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/System.Xml.Linq.xml b/src/packages/FluentAssertions.4.2.2/lib/sl5/System.Xml.Linq.xml deleted file mode 100644 index 7c136ac..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/sl5/System.Xml.Linq.xml +++ /dev/null @@ -1,1655 +0,0 @@ - - - - System.Xml.Linq - - - - Contains the LINQ to XML extension methods. - - - Returns a collection of elements that contains the ancestors of every node in the source collection. - An of that contains the ancestors of every node in the source collection. - An of that contains the source collection. - The type of the objects in , constrained to . - - is null. - - - Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching are included in the collection. - An of that contains the ancestors of every node in the source collection. Only elements that have a matching are included in the collection. - An of that contains the source collection. - The to match. - The type of the objects in , constrained to . - - is null. - - - Returns a collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. - An of that contains every element in the source collection, and the ancestors of every element in the source collection. - An of that contains the source collection. - - is null. - - - Returns a filtered collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. Only elements that have a matching are included in the collection. - An of that contains every element in the source collection, and the ancestors of every element in the source collection. Only elements that have a matching are included in the collection. - An of that contains the source collection. - The to match. - - is null. - - - Returns a collection of the attributes of every element in the source collection. - An of that contains the attributes of every element in the source collection. - An of that contains the source collection. - - is null. - - - Returns a filtered collection of the attributes of every element in the source collection. Only elements that have a matching are included in the collection. - An of that contains a filtered collection of the attributes of every element in the source collection. Only elements that have a matching are included in the collection. - An of that contains the source collection. - The to match. - - is null. - - - Returns a collection of the descendant nodes of every document and element in the source collection. - An of of the descendant nodes of every document and element in the source collection. - An of that contains the source collection. - The type of the objects in , constrained to . - - is null. - - - Returns a collection of nodes that contains every element in the source collection, and the descendant nodes of every element in the source collection. - An of that contains every element in the source collection, and the descendant nodes of every element in the source collection. - An of that contains the source collection. - - is null. - - - Returns a collection of elements that contains the descendant elements of every element and document in the source collection. - An of that contains the descendant elements of every element and document in the source collection. - An of that contains the source collection. - The type of the objects in , constrained to . - - is null. - - - Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching are included in the collection. - An of that contains the descendant elements of every element and document in the source collection. Only elements that have a matching are included in the collection. - An of that contains the source collection. - The to match. - The type of the objects in , constrained to . - - is null. - - - Returns a collection of elements that contains every element in the source collection, and the descendent elements of every element in the source collection. - An of that contains every element in the source collection, and the descendent elements of every element in the source collection. - An of that contains the source collection. - - is null. - - - Returns a filtered collection of elements that contains every element in the source collection, and the descendents of every element in the source collection. Only elements that have a matching are included in the collection. - An of that contains every element in the source collection, and the descendents of every element in the source collection. Only elements that have a matching are included in the collection. - An of that contains the source collection. - The to match. - - is null. - - - Returns a collection of the child elements of every element and document in the source collection. - An of of the child elements of every element or document in the source collection. - An of that contains the source collection. - The type of the objects in , constrained to . - - is null. - - - Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching are included in the collection. - An of of the child elements of every element and document in the source collection. Only elements that have a matching are included in the collection. - An of that contains the source collection. - The to match. - The type of the objects in , constrained to . - - is null. - - - Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. - An of that contains all nodes in the source collection, sorted in document order. - An of that contains the source collection. - The type of the objects in , constrained to . - - - Returns a collection of the child nodes of every document and element in the source collection. - An of of the child nodes of every document and element in the source collection. - An of that contains the source collection. - The type of the objects in , constrained to . - - is null. - - - Removes every attribute in the source collection from its parent element. - An of that contains the source collection. - - is null. - - - Removes every node in the source collection from its parent node. - An of that contains the source collection. - The type of the objects in , constrained to . - - is null. - - - Specifies load options when parsing XML. - - - Does not preserve insignificant white space or load base URI and line information. - - - Preserves insignificant white space while parsing. - - - Requests the base URI information from the , and makes it available via the property. - - - Requests the line information from the and makes it available via properties on . - - - Specifies whether to omit duplicate namespaces when loading an with an . - - - No reader options specified. - - - Omit duplicate namespaces when loading the . - - - Specifies serialization options. - - - Formats (indent) the XML while serializing. - - - Preserves all insignificant white space while serializing. - - - Removes duplicate namespace declarations. For the duplicate namespace declarations to be removed, both the prefix and the namespace have to match. - - - Represents an XML attribute. - - - Initializes a new instance of the class from another object. - An object to copy from. - The parameter is null. - - - Initializes a new instance of the class from the specified name and value. - The of the attribute. - An containing the value of the attribute. - The or parameter is null. - - - Gets an empty collection of attributes. - An of containing an empty collection. - - - Determines if this attribute is a namespace declaration. - true if this attribute is a namespace declaration; otherwise false. - - - Gets the expanded name of this attribute. - An containing the name of this attribute. - - - Gets the next attribute of the parent element. - An containing the next attribute of the parent element. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The attribute does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The attribute does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to an . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The attribute does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The attribute does not contain a valid value. - - - Cast the value of this to an . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to a of . - The attribute does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The attribute does not contain a valid value. - The parameter is null. - - - Gets the previous attribute of the parent element. - An containing the previous attribute of the parent element. - - - Removes this attribute from its parent element. - The parent element is null. - - - Sets the value of this attribute. - The value to assign to this attribute. - The parameter is null. - The is an . - - - Converts the current object to a string representation. - A containing the XML text representation of an attribute and its value. - - - Gets or sets the value of this attribute. - A containing the value of this attribute. - When setting, the is null. - - - Represents a text node that contains CDATA. - - - Initializes a new instance of the class. - A string that contains the value of the node. - - - Initializes a new instance of the class. - The node to copy from. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Writes this CDATA object to an . - An into which this method will write. - - is null. - - - Represents an XML comment. - - - Initializes a new instance of the class with the specified string content. - A string that contains the contents of the new object. - The parameter is null. - - - Initializes a new instance of the class from an existing comment node. - The node to copy from. - The parameter is null. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Gets or sets the string value of this comment. - A that contains the string value of this comment. - The is null. - - - Write this comment to an . - An into which this method will write. - - is null. - - - Represents a node that can contain other nodes. - - - Adds the specified content as children of this . - A content object containing simple content or a collection of content objects to be added. - - - Adds the specified content as children of this . - A parameter list of content objects. - - - Adds the specified content as the first children of this document or element. - A content object containing simple content or a collection of content objects to be added. - - - Adds the specified content as the first children of this document or element. - A parameter list of content objects. - The parent is null. - - - Creates an that can be used to add nodes to the . - An that is ready to have content written to it. - - - Returns a collection of the descendant nodes for this document or element, in document order. - An of containing the descendant nodes of the , in document order. - - - Returns a collection of the descendant elements for this document or element, in document order. - An of containing the descendant elements of the . - - - Returns a filtered collection of the descendant elements for this document or element, in document order. Only elements that have a matching are included in the collection. - An of containing the descendant elements of the that match the specified . - The to match. - - - Gets the first (in document order) child element with the specified . - A that matches the specified , or null. - The to match. - - - Returns a collection of the child elements of this element or document, in document order. - An of containing the child elements of this , in document order. - - - Returns a filtered collection of the child elements of this element or document, in document order. Only elements that have a matching are included in the collection. - An of containing the children of the that have a matching , in document order. - The to match. - - - Get the first child node of this node. - An containing the first child node of the . - - - Get the last child node of this node. - An containing the last child node of the . - - - Returns a collection of the child nodes of this element or document, in document order. - An of containing the contents of this , in document order. - - - Removes the child nodes from this document or element. - - - Replaces the children nodes of this document or element with the specified content. - A content object containing simple content or a collection of content objects that replace the children nodes. - - - Replaces the children nodes of this document or element with the specified content. - A parameter list of content objects. - - - Represents an XML declaration. - - - Initializes a new instance of the class with the specified version, encoding, and standalone status. - The version of the XML, usually "1.0". - The encoding for the XML document. - A string containing "yes" or "no" that specifies whether the XML is standalone or requires external entities to be resolved. - - - Initializes a new instance of the class from another object. - The used to initialize this object. - - is null. - - - Gets or sets the encoding for this document. - A containing the code page name for this document. - - - Gets or sets the standalone property for this document. - A containing the standalone property for this document. - - - Provides the declaration as a formatted string. - A that contains the formatted XML string. - - - Gets or sets the version property for this document. - A containing the version property for this document. - - - Represents an XML document. - - - Initializes a new instance of the class. - - - Initializes a new instance of the class with the specified content. - A parameter list of content objects to add to this document. - - - Initializes a new instance of the class with the specified and content. - An for the document. - The content of the document. - - - Initializes a new instance of the class from an existing object. - The object that will be copied. - - - Gets or sets the XML declaration for this document. - An that contains the XML declaration for this document. - - - Gets the Document Type Definition (DTD) for this document. - A that contains the DTD for this document. - - - Creates a new instance using the specified stream. - An object used to read the data contained in the stream. - The stream containing the XML data. - - - Creates a new instance using the specified stream, optionally preserving white space, setting the base URI, and retaining line information. - An object used to read the data contained in the stream. - The stream containing the XML data. - A that specifies whether to load base URI and line information. - - - Creates a new from a . - An that contains the contents of the specified . - A that contains the content for the . - - - Creates a new from a , optionally preserving white space, setting the base URI, and retaining line information. - An that contains the XML that was read from the specified . - A that contains the content for the . - A that specifies white space behavior, and whether to load base URI and line information. - - - Creates a new from a file located in the application's XAP package. - An that contains the contents of the specified file. - A URI string that references the file to be loaded into a new . This file is located in the application's XAP package. If you want to download a file from some other location, follow the steps described in How to: Load an XML file from an Arbitrary URI Location with LINQ to XML. - - - Creates a new from a file located in the application's XAP package, optionally preserving white space, setting the base URI, and retaining line information. - An that contains the contents of the specified file. - A URI string that references the file to be loaded into a new . This file is located in the application's XAP package. If you want to download a file from some other location, follow the steps described in How to: Load an XML file from an Arbitrary URI Location with LINQ to XML. - A that specifies how white space is handled and whether to load base URI and line information. - - - Creates a new from an . - An that contains the contents of the specified . - A that contains the content for the . - - - Creates a new from an , optionally setting the base URI, and retaining line information. - An that contains the XML that was read from the specified . - A that will be read for the content of the . - A that specifies whether to load base URI and line information. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Creates a new from a string. - An populated from the string that contains XML. - A string that contains XML. - - - Creates a new from a string, optionally preserving white space, setting the base URI, and retaining line information. - An populated from the string that contains XML. - A string that contains XML. - A that specifies white space behavior, and whether to load base URI and line information. - - - Gets the root element of the XML Tree for this document. - The root of the XML tree. - - - Outputs this to the specified . - The stream to output this to. - - - Outputs this to the specified , optionally specifying formatting behavior. - The stream to output this to. - A that specifies formatting behavior. - - - Serialize this to a . - A that the will be written to. - - - Serialize this to a , optionally disabling formatting. - The to output the XML to. - A that specifies formatting behavior. - - - Serialize this to an . - A that the will be written to. - - - Write this document to an . - An into which this method will write. - - - Represents an XML Document Type Definition (DTD). - - - Initializes an instance of the class. - A that contains the qualified name of the DTD, which is the same as the qualified name of the root element of the XML document. - A that contains the public identifier of an external public DTD. - A that contains the system identifier of an external private DTD. - A that contains the internal subset for an internal DTD. - - - Initializes an instance of the class from another object. - An object to copy from. - - - Gets or sets the internal subset for this Document Type Definition (DTD). - A that contains the internal subset for this Document Type Definition (DTD). - - - Gets or sets the name for this Document Type Definition (DTD). - A that contains the name for this Document Type Definition (DTD). - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Gets or sets the public identifier for this Document Type Definition (DTD). - A that contains the public identifier for this Document Type Definition (DTD). - - - Gets or sets the system identifier for this Document Type Definition (DTD). - A that contains the system identifier for this Document Type Definition (DTD). - - - Write this to an . - An into which this method will write. - - - Represents an XML element. - - - Initializes a new instance of the class from another object. - An object to copy from. - - - Initializes a new instance of the class with the specified name. - An that contains the name of the element. - - - Initializes a new instance of the class with the specified name and content. - An that contains the element name. - The contents of the element. - - - Initializes a new instance of the class with the specified name and content. - An that contains the element name. - The initial content of the element. - - - Initializes a new instance of the class from an object. - An that contains unevaluated queries that will be iterated for the contents of this . - - - Returns a collection of elements that contain this element, and the ancestors of this element. - An of of elements that contain this element, and the ancestors of this element. - - - Returns a filtered collection of elements that contain this element, and the ancestors of this element. Only elements that have a matching are included in the collection. - An of that contain this element, and the ancestors of this element. Only elements that have a matching are included in the collection. - The to match. - - - Returns the of this that has the specified . - An that has the specified ; null if there is no attribute with the specified name. - The of the to get. - - - Returns a collection of attributes of this element. - An of of attributes of this element. - - - Returns a filtered collection of attributes of this element. Only elements that have a matching are included in the collection. - An of that contains the attributes of this element. Only elements that have a matching are included in the collection. - The to match. - - - Returns a collection of nodes that contain this element, and all descendant nodes of this element, in document order. - An of that contain this element, and all descendant nodes of this element, in document order. - - - Returns a collection of elements that contain this element, and all descendant elements of this element, in document order. - An of of elements that contain this element, and all descendant elements of this element, in document order. - - - Returns a filtered collection of elements that contain this element, and all descendant elements of this element, in document order. Only elements that have a matching are included in the collection. - An of that contain this element, and all descendant elements of this element, in document order. Only elements that have a matching are included in the collection. - The to match. - - - Gets an empty collection of elements. - An of that contains an empty collection. - - - Gets the first attribute of this element. - An that contains the first attribute of this element. - - - Gets the default of this . - An that contains the default namespace of this . - - - Gets the namespace associated with a particular prefix for this . - An for the namespace associated with the prefix for this . - A string that contains the namespace prefix to look up. - - - Gets the prefix associated with a namespace for this . - A that contains the namespace prefix. - An to look up. - - - Gets a value indicating whether this element as at least one attribute. - true if this element has at least one attribute; otherwise false. - - - Gets a value indicating whether this element has at least one child element. - true if this element has at least one child element; otherwise false. - - - Gets a value indicating whether this element contains no content. - true if this element contains no content; otherwise false. - - - Gets the last attribute of this element. - An that contains the last attribute of this element. - - - Creates a new instance using the specified stream. - An object used to read the data contained in the stream. - The stream containing the XML data. - - - Creates a new instance using the specified stream, optionally preserving white space, setting the base URI, and retaining line information. - An object used to read the data contained in the stream. - The stream containing the XML data. - A that specifies whether to load base URI and line information. - - - Loads an from a . - An that contains the XML that was read from the specified . - A that will be read for the content. - - - Loads an from a , optionally preserving white space and retaining line information. - An that contains the XML that was read from the specified . - A that will be read for the content. - A that specifies white space behavior, and whether to load base URI and line information. - - - Loads an from a file located in the applications' XAP package. - An that contains the contents of the specified file. - A URI string that references the file to be loaded into a new . This file is located in the application's XAP package. If you want to download a file from some other location, follow the steps described in How to: Load an XML file from an Arbitrary URI Location with LINQ to XML. - - - Loads an from a file located in the application's XAP package, optionally preserving white space, setting the base URI, and retaining line information. - An that contains the contents of the specified file. - A URI string that references the file to be loaded into a new . This file is located in the application's XAP package. If you want to download a file from some other location, follow the steps described in How to: Load an XML file from an Arbitrary URI Location with LINQ to XML. - A that specifies white space behavior, and whether to load base URI and line information. - - - Loads an from an . - An that contains the XML that was read from the specified . - A that will be read for the content of the . - - - Loads an from an , optionally preserving white space, setting the base URI, and retaining line information. - An that contains the XML that was read from the specified . - A that will be read for the content of the . - A that specifies white space behavior, and whether to load base URI and line information. - - - Gets the name of this element. - An that contains the name of this element. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to an of . - The element does not contain a valid value. - - - Cast the value of this to an . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to a of . - A of that contains the content of this . - The to cast to of . - The element does not contain a valid value. - - - Cast the value of this to an . - A that contains the content of this . - The to cast to . - The element does not contain a valid value. - The parameter is null. - - - Load an from a string that contains XML. - An populated from the string that contains XML. - A that contains XML. - - - Load an from a string that contains XML, optionally preserving white space and retaining line information. - An populated from the string that contains XML. - A that contains XML. - A that specifies white space behavior, and whether to load base URI and line information. - - - Removes nodes and attributes from this . - - - Removes the attributes of this . - - - Replaces the child nodes and the attributes of this element with the specified content. - The content that will replace the child nodes and attributes of this element. - - - Replaces the child nodes and the attributes of this element with the specified content. - A parameter list of content objects. - - - Replaces the attributes of this element with the specified content. - The content that will replace the attributes of this element. - - - Replaces the attributes of this element with the specified content. - A parameter list of content objects. - - - Outputs this to the specified . - The stream to output this to. - - - Outputs this to the specified , optionally specifying formatting behavior. - The stream to output this to. - A that specifies formatting behavior. - - - Serialize this element to a . - A that the will be written to. - - - Serialize this element to a , optionally disabling formatting. - The to output the XML to. - A that specifies formatting behavior. - - - Serialize this element to an . - A that the will be written to. - - - Sets the value of an attribute, adds an attribute, or removes an attribute. - An that contains the name of the attribute to change. - The value to assign to the attribute. The attribute is removed if the value is null. Otherwise, the value is converted to its string representation and assigned to the property of the attribute. - The is an instance of . - - - Sets the value of a child element, adds a child element, or removes a child element. - An that contains the name of the child element to change. - The value to assign to the child element. The child element is removed if the value is null. Otherwise, the value is converted to its string representation and assigned to the property of the child element. - The is an instance of . - - - Sets the value of this element. - The value to assign to this element. The value is converted to its string representation and assigned to the property. - The is null. - The is an . - - - Gets an XML schema definition that describes the XML representation of this object. - An that describes the XML representation of the object that is produced by the method and consumed by the method. - - - Generates an object from its XML representation. - The from which the object is deserialized. - - - Converts an object into its XML representation. - The to which this object is serialized. - - - Gets the concatenated text contents of this element. - A that contains all of the text content of this element. If there are multiple text nodes, they will be concatenated. - - - Write this element to an . - An into which this method will write. - - - Represents a name of an XML element or attribute. - - - Determines whether the specified is equal to this . - true if the specified is equal to the current ; otherwise false. - The to compare to the current . - - - Gets an object from an expanded name. - An object constructed from the expanded name. - A that contains an expanded XML name in the format {namespace}localname. - - - Gets an object from a local name and a namespace. - An object created from the specified local name and namespace. - A local (unqualified) name. - An XML namespace. - - - Gets a hash code for this . - An that contains the hash code for the . - - - Gets the local (unqualified) part of the name. - A that contains the local (unqualified) part of the name. - - - Gets the namespace part of the fully qualified name. - An that contains the namespace part of the name. - - - Returns the URI of the for this . - The URI of the for this . - - - Returns a value indicating whether two instances of are equal. - true if and are equal; otherwise false. - The first to compare. - The second to compare. - - - Converts a string formatted as an expanded XML name (that is,{namespace}localname) to an object. - An object constructed from the expanded name. - A string that contains an expanded XML name in the format {namespace}localname. - - - Returns a value indicating whether two instances of are not equal. - true if and are not equal; otherwise false. - The first to compare. - The second to compare. - - - Indicates whether the current is equal to the specified . - true if this is equal to the specified , otherwise false. - The to compare with this . - - - Returns the expanded XML name in the format {namespace}localname. - A that contains the expanded XML name in the format {namespace}localname. - - - Represents an XML namespace. This class cannot be inherited. - - - Determines whether the specified is equal to the current . - A that indicates whether the specified is equal to the current . - The to compare to the current . - - - Gets an for the specified Uniform Resource Identifier (URI). - An created from the specified URI. - A that contains a namespace URI. - - - Gets a hash code for this . - An that contains the hash code for the . - - - Returns an object created from this and the specified local name. - An created from this and the specified local name. - A that contains a local name. - - - Gets the Uniform Resource Identifier (URI) of this namespace. - A that contains the URI of the namespace. - - - Gets the object that corresponds to no namespace. - The that corresponds to no namespace. - - - Combines an object with a local name to create an . - The new constructed from the namespace and local name. - An that contains the namespace. - A that contains the local name. - - - Returns a value indicating whether two instances of are equal. - A that indicates whether and are equal. - The first to compare. - The second to compare. - - - Converts a string containing a Uniform Resource Identifier (URI) to an . - An constructed from the URI string. - A that contains the namespace URI. - - - Returns a value indicating whether two instances of are not equal. - A that indicates whether and are not equal. - The first to compare. - The second to compare. - - - Returns the URI of this . - The URI of this . - - - Gets the object that corresponds to the XML URI (http://www.w3.org/XML/1998/namespace). - The that corresponds to the XML URI (http://www.w3.org/XML/1998/namespace). - - - Gets the object that corresponds to the xmlns URI (http://www.w3.org/2000/xmlns/). - The that corresponds to the xmlns URI (http://www.w3.org/2000/xmlns/). - - - Represents the abstract concept of a node (one of: element, comment, document type, processing instruction, or text node) in the XML tree. - - - Adds the specified content immediately after this node. - A content object that contains simple content or a collection of content objects to be added after this node. - The parent is null. - - - Adds the specified content immediately after this node. - A parameter list of content objects. - The parent is null. - - - Adds the specified content immediately before this node. - A content object that contains simple content or a collection of content objects to be added before this node. - The parent is null. - - - Adds the specified content immediately before this node. - A parameter list of content objects. - The parent is null. - - - Returns a collection of the ancestor elements of this node. - An of of the ancestor elements of this node. - - - Returns a filtered collection of the ancestor elements of this node. Only elements that have a matching are included in the collection. - An of of the ancestor elements of this node. Only elements that have a matching are included in the collection.The nodes in the returned collection are in reverse document order.This method uses deferred execution. - The to match. - - - Compares two nodes to determine their relative XML document order. - An int containing 0 if the nodes are equal; -1 if is before ; 1 if is after . - First to compare. - Second to compare. - The two nodes do not share a common ancestor. - - - Creates an for this node. - An that can be used to read this node and its descendants. - - - Creates an for this node. - An that can be used to read this node and its descendants. - Specifies whether to omit duplicate namespaces. - - - Compares the values of two nodes, including the values of all descendant nodes. - true if the nodes are equal; otherwise false. - The first to compare. - The second to compare. - - - Gets a comparer that can compare the relative position of two nodes. - A that can compare the relative position of two nodes. - - - Returns a collection of the sibling elements after this node, in document order. - An of of the sibling elements after this node, in document order. - - - Returns a filtered collection of the sibling elements after this node, in document order. Only elements that have a matching are included in the collection. - An of of the sibling elements after this node, in document order. Only elements that have a matching are included in the collection. - The to match. - - - Returns a collection of the sibling elements before this node, in document order. - An of of the sibling elements before this node, in document order. - - - Returns a filtered collection of the sibling elements before this node, in document order. Only elements that have a matching are included in the collection. - An of of the sibling elements before this node, in document order. Only elements that have a matching are included in the collection. - The to match. - - - Gets a comparer that can compare two nodes for value equality. - A that can compare two nodes for value equality. - - - Determines if the current node appears after a specified node in terms of document order. - true if this node appears after the specified node; otherwise false. - The to compare for document order. - - - Determines if the current node appears before a specified node in terms of document order. - true if this node appears before the specified node; otherwise false. - The to compare for document order. - - - Gets the next sibling node of this node. - The that contains the next sibling node. - - - Returns a collection of the sibling nodes after this node, in document order. - An of of the sibling nodes after this node, in document order. - - - Returns a collection of the sibling nodes before this node, in document order. - An of of the sibling nodes before this node, in document order. - - - Gets the previous sibling node of this node. - The that contains the previous sibling node. - - - Creates an from an . - An that contains the node and its descendant nodes that were read from the reader. The runtime type of the node is determined by the node type () of the first node encountered in the reader. - An positioned at the node to read into this . - The is not positioned on a recognized node type. - The underlying throws an exception. - - - Removes this node from its parent. - The parent is null. - - - Replaces this node with the specified content. - Content that replaces this node. - - - Replaces this node with the specified content. - A parameter list of the new content. - - - Returns the indented XML for this node. - A containing the indented XML. - - - Returns the XML for this node, optionally disabling formatting. - A containing the XML. - A that specifies formatting behavior. - - - Writes this node to an . - An into which this method will write. - - - Contains functionality to compare nodes for their document order. This class cannot be inherited. - - - Initializes a new instance of the class. - - - Compares two nodes to determine their relative document order. - An that contains 0 if the nodes are equal; -1 if is before ; 1 if is after . - The first to compare. - The second to compare. - The two nodes do not share a common ancestor. - - - Compares nodes to determine whether they are equal. This class cannot be inherited. - - - Initializes a new instance of the class. - - - Compares the values of two nodes. - A indicating if the nodes are equal. - The first to compare. - The second to compare. - - - Returns a hash code based on an . - A that contains a value-based hash code for the node. - The to hash. - - - Represents a node or an attribute in an XML tree. - - - Adds an object to the annotation list of this . - An that contains the annotation to add. - - - Get the first annotation object of the specified type from this . - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - The type of the annotation to retrieve. - - - Gets the first annotation object of the specified type from this . - The that contains the first annotation object that matches the specified type, or null if no annotation is of the specified type. - The of the annotation to retrieve. - - - Gets a collection of annotations of the specified type for this . - An that contains the annotations for this . - The type of the annotations to retrieve. - - - Gets a collection of annotations of the specified type for this . - An of that contains the annotations that match the specified type for this . - The of the annotations to retrieve. - - - Gets the base URI for this . - A that contains the base URI for this . - - - Raised when this or any of its descendants have changed. - - - Raised when this or any of its descendants are about to change. - - - Gets the for this . - The for this . - - - Gets the node type for this . - The node type for this . - - - Gets the parent of this . - The parent of this . - - - Removes the annotations of the specified type from this . - The type of annotations to remove. - - - Removes the annotations of the specified type from this . - The of annotations to remove. - - - Gets a value indicating whether or not this has line information. - true if the has line information, otherwise false. - - - Gets the line number that the underlying reported for this . - An that contains the line number reported by the for this . - - - Gets the line position that the underlying reported for this . - An that contains the line position reported by the for this . - - - Specifies the event type when an event is raised for an . - - - An has been or will be added to an . - - - An has been or will be removed from an . - - - An has been or will be renamed. - - - The value of an has been or will be changed. In addition, a change in the serialization of an empty element (either from an empty tag to start/end tag pair or vice versa) raises this event. - - - Provides data for the and events. - - - Initializes a new instance of the class. - An that contains the event arguments for LINQ to XML events. - - - Event argument for an change event. - - - Event argument for a change event. - - - Gets the type of change. - An that contains the type of change. - - - Event argument for a change event. - - - Event argument for a change event. - - - Represents an XML processing instruction. - - - Initializes a new instance of the class. - A containing the target application for this . - The string data for this . - The or parameter is null. - The does not follow the constraints of an XML name. - - - Initializes a new instance of the class. - The node to copy from. - - - Gets or sets the string value of this processing instruction. - A that contains the string value of this processing instruction. - The string is null. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Gets or sets a string containing the target application for this processing instruction. - A containing the target application for this processing instruction. - The string is null. - The does not follow the constraints of an XML name. - - - Writes this processing instruction to an . - The to write this processing instruction to. - - - Represents elements in an XML tree that supports deferred streaming output. - - - Initializes a new instance of the class from the specified . - An that contains the name of the element. - - - Initializes a new instance of the class with the specified name and content. - An that contains the element name. - The contents of the element. - - - Initializes a new instance of the class with the specified name and content. - An that contains the element name. - The contents of the element. - - - Adds the specified content as children to this . - Content to be added to the streaming element. - - - Adds the specified content as children to this . - Content to be added to the streaming element. - - - Gets or sets the name of this streaming element. - An that contains the name of this streaming element. - - - Outputs this to the specified . - The stream to output this to. - - - Outputs this to the specified , optionally specifying formatting behavior. - The stream to output this to. - A that specifies formatting behavior. - - - Serialize this streaming element to a . - A that the will be written to. - - - Serialize this streaming element to a , optionally disabling formatting. - The to output the XML to. - A that specifies formatting behavior. - - - Serialize this streaming element to an . - A that the will be written to. - - - Returns the formatted (indented) XML for this streaming element. - A containing the indented XML. - - - Returns the XML for this streaming element, optionally disabling formatting. - A containing the XML. - A that specifies formatting behavior. - - - Writes this streaming element to an . - An into which this method will write. - - - Represents a text node. - - - Initializes a new instance of the class. - The that contains the value of the node. - - - Initializes a new instance of the class from another object. - The node to copy from. - - - Gets the node type for this node. - The node type. For objects, this value is . - - - Gets or sets the value of this node. - A that contains the value of this node. - - - Writes this node to an . - An into which this method will write. - - - Compares two nodes to determine their relative document order. - An that contains 0 if the nodes are equal; -1 if is before ; 1 if is after . - The first to compare. - The second to compare. - The two nodes do not share a common ancestor. - The two nodes are not derived from . - - - Compares the values of two nodes. - true if the nodes are equal; otherwise false. - The first to compare. - The second to compare. - - - Returns a hash code based on the value of a node. - A that contains a value-based hash code for the node. - The node to hash. - - - \ No newline at end of file diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/de/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/de/Microsoft.CSharp.resources.dll deleted file mode 100644 index bc5e016..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/de/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/de/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/de/System.Xml.Linq.resources.dll deleted file mode 100644 index 21692ce..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/de/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/es/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/es/Microsoft.CSharp.resources.dll deleted file mode 100644 index af77736..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/es/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/es/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/es/System.Xml.Linq.resources.dll deleted file mode 100644 index 63d282b..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/es/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/fr/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/fr/Microsoft.CSharp.resources.dll deleted file mode 100644 index f7d3583..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/fr/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/fr/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/fr/System.Xml.Linq.resources.dll deleted file mode 100644 index 8b74b86..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/fr/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/it/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/it/Microsoft.CSharp.resources.dll deleted file mode 100644 index c8ed83a..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/it/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/it/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/it/System.Xml.Linq.resources.dll deleted file mode 100644 index 0706764..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/it/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/ja/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/ja/Microsoft.CSharp.resources.dll deleted file mode 100644 index 9a89e03..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/ja/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/ja/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/ja/System.Xml.Linq.resources.dll deleted file mode 100644 index 63bdf8f..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/ja/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/ko/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/ko/Microsoft.CSharp.resources.dll deleted file mode 100644 index 04ce047..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/ko/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/ko/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/ko/System.Xml.Linq.resources.dll deleted file mode 100644 index 65d5b12..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/ko/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/ru/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/ru/Microsoft.CSharp.resources.dll deleted file mode 100644 index 04bcf1c..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/ru/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/ru/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/ru/System.Xml.Linq.resources.dll deleted file mode 100644 index 53cedff..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/ru/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hans/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hans/Microsoft.CSharp.resources.dll deleted file mode 100644 index da94005..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hans/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hans/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hans/System.Xml.Linq.resources.dll deleted file mode 100644 index 3aac37f..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hans/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hant/Microsoft.CSharp.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hant/Microsoft.CSharp.resources.dll deleted file mode 100644 index 04038dc..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hant/Microsoft.CSharp.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hant/System.Xml.Linq.resources.dll b/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hant/System.Xml.Linq.resources.dll deleted file mode 100644 index a5980d2..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/sl5/zh-Hant/System.Xml.Linq.resources.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.dll deleted file mode 100644 index a24bb78..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.pdb deleted file mode 100644 index edd3dc8..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.pri b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.pri deleted file mode 100644 index 337cca0..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.pri and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.xml deleted file mode 100644 index 0003d7d..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/win81/FluentAssertions.xml +++ /dev/null @@ -1,1184 +0,0 @@ - - - - FluentAssertions - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Simulates the AppDomain class that is not available in Windows Store apps. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Provides methods for asserting that the execution time of an satisfies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satisfies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.dll deleted file mode 100644 index 2adb85f..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.pdb deleted file mode 100644 index b96bbdb..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.xml deleted file mode 100644 index 718314f..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/wp8/FluentAssertions.xml +++ /dev/null @@ -1,1227 +0,0 @@ - - - - FluentAssertions - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.dll b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.dll deleted file mode 100644 index a24bb78..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.pdb b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.pdb deleted file mode 100644 index edd3dc8..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.pri b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.pri deleted file mode 100644 index 337cca0..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.pri and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.xml b/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.xml deleted file mode 100644 index 0003d7d..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/wpa81/FluentAssertions.xml +++ /dev/null @@ -1,1184 +0,0 @@ - - - - FluentAssertions - - - - - Represents the default exception in case no test framework is configured. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Simulates the AppDomain class that is not available in Windows Store apps. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws the exact exception (and not a derived exception type). - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection of objects is equivalent to another collection of objects. - - - Objects within the collections are equivalent when both object graphs have equally named properties with the same - value, irrespective of the type of those objects. Two properties are also equal if one type can be converted to another - and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the global defaults managed by . - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. The global defaults are determined by the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the Assembly defines a type called and . - - The namespace of the class. - The name of the class. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Provides methods for asserting that the execution time of an satisfies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satisfies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - - - Asserts that the current is equivalent to the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - - - Asserts that the current is not equivalent to the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a root element with the specified - name. - - The full name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The full name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - - - Asserts that the current is equivalent to the element, - using its implementation. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - - - Asserts that the current is not equivalent to the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - diff --git a/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.dll b/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.dll deleted file mode 100644 index 63e1dc1..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.dll and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.pdb b/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.pdb deleted file mode 100644 index a0a8912..0000000 Binary files a/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.pdb and /dev/null differ diff --git a/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.xml b/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.xml deleted file mode 100644 index 510b35b..0000000 --- a/src/packages/FluentAssertions.4.2.2/lib/xamarin.ios/FluentAssertions.Core.xml +++ /dev/null @@ -1,7184 +0,0 @@ - - - - FluentAssertions.Core - - - - - Initializes a new instance of the class. - - - - - Constraint which can be returned from an assertion which matches a condition and which will allow - further matches to be performed on the matched condition as well as the parent constraint. - - The type of the original constraint that was matched - The type of the matched object which the parent constraint matched - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - - - Returns the single result of a prior assertion that is used to select a nested or collection item. - - - Just a convenience property that returns the same value as . - - - - - Holds any global options that control the behavior of FluentAssertions. - - - - - Defines a predicate with which the determines if it should process - an object's properties or not. - - - Returns true if the object should be treated as a value type and its - must be used during a structural equivalency check. - - - - - Allows configuring the defaults used during a structural equivalency assertion. - - - An action that is used to configure the defaults. - - - - - Represents a mutable collection of steps that are executed while asserting a (collection of) object(s) - is structurally equivalent to another (collection of) object(s). - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is null or does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not null and contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order, not necessarily consecutive. - - - Elements are compared using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection starts with the specified . - - - The element that is expected to appear at the start of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection ends with the specified . - - - The element that is expected to appear at the end of the collection. The object's - is used to compare the element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly precedes the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element directly succeeds the . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a collection is ordered in ascending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a collection is ordered in descending order according to the value of the the specified - . - - - A lambda expression that references the property that should be used to determine the expected ordering. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be satisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns an enumerable consisting of all items in the first collection also appearing in the second. - - Enumerable.Intersect is not suitable because it drops any repeated elements. - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected key/value pairs. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected key/value pairs - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their method. - - A params array with the expected elements. - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain only a single item matching the specified . - - The predicate that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the value of the object referred to by the key. - - - - - Gets the active configuration, - - - - - Gets or sets the mode on how Fluent Assertions will find custom implementations of - . - - - - - Gets or sets the assembly name to scan for custom value formatters in case - is set to . - - - - - Converts an existing to a but normalizes the - so that comparisons of converted instances retain the UTC/local agnostic behavior. - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Defines the contract the platform-specific assembly must implement to be able to get a chance to initialize itself. - - - - - Facade to resolve an implementation of a particular interface using a platform-specific assembly. - - - - - An implementation of that probes for platforms-specific adapters by dynamically - looking for concrete types in platform-specific assemblies. - - - - - Maintains the framework-specific services. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Changes the first character of a string to uppercase. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Determines whether two objects refer to the same member. - - - - - NOTE: This method does not give the expected results with open generics - - - - - Finds a member by its case-sensitive name. - - - Returns null if no such member exists. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Finds the field by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Defines the modes in which custom implementations of are detected as configured - through . - - - - - Detection is disabled. - - - - - Only custom value formatters exposed through the assembly set in - are detected. - - - - - All custom value formatters in any assembly loaded in the current will be detected. - - - - - Represents a mutable collection of equivalency steps that can be reordered and/or amended with additional - custom equivalency steps. - - - - - Adds a new after any of the built-in steps, with the exception of the final - . - - - - - Adds a new right after the specified . - - - - - Inserts a new before any of the built-in steps. - - - - - Inserts a new just before the . - - - - - Removes all instances of the specified from the current step. - - - - - Removes each and every built-in . - - - - - Represents a collection of assertion results obtained through a . - - - - - Adds the failures (if any) resulting from executing an assertion within a - identified by a key. - - - - - Returns the closest match compared to the set identified by the provided or - an empty array if one of the results represents a successful assertion. - - - The closest match is the set that contains the least amount of failures, or no failures at all, and preferably - the set that is identified by the . - - - - - Gets a value indicating whether this collection contains a set without any failures at all. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Adaptor allowing an IAssertionRule to be used where a IEquivalencyStep is required. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - - - - - Represents the run-time type-specific behavior of a structural equivalency assertion. - - - - - Excludes the specified (nested) member from the structural equality check. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Includes the specified member in the equality check. - - - This overrides the default behavior of including all declared members. - - - - - Causes the collection identified by to be compared in the order - in which the items appear in the expectation. - - - - - Creates a new set of options based on the current instance which acts on a - - - - - - Represents the run-time type-agnostic behavior of a structural equivalency assertion. - - - - - Returns either the run-time or compile-time type of the subject based on the options provided by the caller. - - - - - Gets the value of the - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides an ISelectedMemberInfo for FieldInfo objects - - - - - I think (but did not try) this would have been easier using 'dynamic' but that is - precluded by some of the PCL targets. - - - - - Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a value indicating whether recursion is allowed to continue indefinitely. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating how the enums should be compared. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets a value indicating whether the runtime type should be used rather than the declared type. - - - - - Gets a value indicating whether properties should be considered. - - - - - Gets a value indicating whether fields should be considered. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Defines a step in the process of comparing two object graphs for structural equivalency. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Gets or sets a value indicating that the root of the graph is a collection so all type-specific options apply on - the collection type and not on the root itself. - - - - - Represents a rule that defines how to map the members from the subject-under-test with the members - on the expectation object. - - - - - Attempts to find a member on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's member for which a match must be found. Can never - be null. - - - The expectation object for which a matching member must be returned. Can never be null. - - - The dotted path from the root object to the current member. Will never be null. - - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Represents a rule that defines which members of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Gets a value indicating whether this rule should override the default selection rules that include all members. - - - - - Adds or removes properties to/from the collection of subject members that must be included while - comparing two objects for structural equality. - - - A collection of members that was prepopulated by other selection rules. Can be empty. - - - - Type info about the subject. - - - The collection of members after applying this rule. Can contain less or more than was passed in. - - - - - Defines a rule that is used to determine whether the order of items in collections is relevant or not. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides details about the subject's root or nested member. - - - - - Gets the of the member that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object and the type is not , - then it returns the same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Requires the expectation object to have a member with the exact same name. - - - - 2 - - - - Finds a member of the expectation with the exact same name, but doesn't require it. - - - - 2 - - - - A partial ISelectedMemberInfo implementation that delegates to a MemberInfo object - - - - - Supports recursively comparing two multi-dimensional arrays for equivalency using strict order for the array items - themselves. - - - - - Represents an object tracked by the including it's location within an object graph. - - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . 2 - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - 2 - - - - Keeps track of objects and their location within an object graph so that cyclic references can be detected - and handled upon. - - - - - Determines whether the specified object reference is a cyclic reference to the same object earlier in the - equivalency validation. - - - The behavior of a cyclic reference is determined by the constructor - parameter. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Collection of s. - - - - - Initializes a new collection of ordering rules. - - - - - Initializes a new collection of ordering rules based on an existing collection of ordering rules. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on - the collection pointed to by . - - - - - Ordering rule that ensures that byte arrays are always compared in strict ordering since it would cause a - severe performance impact otherwise. - - - - - An ordering rule that basically states that the order of items in all collections is important. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Represents a rule for determining whether or not a certain collection within the object graph should be compared using - strict ordering. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Determines if ordering of the member referred to by the current is relevant. - - - - - Provides an ISelectedMemberInfo for PropertyInfo objects - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Represents a composite equivalency step that passes the execution to all user-supplied steps that can handle the - current context. - - - - - Exposes information about an object's member - - - - - Gets the name of the current member. - - - - - Gets the type of this member. - - - - - Gets the class that declares this member. - - - - - Returns the member value of a specified object with optional index values for indexed properties or methods. - - - - - Selection rule that adds all public fields of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Selection rule that removes a particular member from the structural comparison based on a predicate. - - - - 2 - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Selection rule that includes a particular member in the structural comparison. - - - - 2 - - - - Encapsulates a dotted path to a (nested) member of a type. - - - - - Represents a selection context of a nested property - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents the run-time behavior of a structural equivalency assertion. - - - - - Creates an instance of the equivalency assertions options based on defaults previously configured by the caller. - - - - - Gets an ordered collection of selection rules that define what members are included. - - - - - Gets an ordered collection of matching rules that determine which subject members are matched with which - expectation members. - - - - - Gets an ordered collection of Equivalency steps how a subject is compared with the expectation. - - - - - Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, - ordering is irrelevant. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Gets a value indicating whether the should be treated as having value semantics. - - - - - Causes inclusion of only public properties of the subject as far as they are defined on the declared type. - - - This clears all previously registered selection rules. - - - - - Causes inclusion of only public properties of the subject based on its run-time type rather than its declared type. - - - This clears all previously registered selection rules. - - - - - Instructs the comparison to include fields. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude fields. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to include properties. - - - This is part of the default behavior. - - - - - Instructs the comparison to exclude properties. - - - This does not preclude use of `Including`. - - - - - Instructs the comparison to respect the subject's runtime type. - - - - - Instructs the comparison to respect the subject's declared type. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Tries to match the members of the subject with equally named members on the expectation. Ignores those - members that don't exist on the expectation and previously registered matching rules. - - - - - Requires the expectation to have members which are equally named to members on the subject. - - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to exclude nested collections and complex types. - - - Behaves similarly to the old property assertions API. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Disables limitations on recursion depth when the structural equality check is configured to include nested objects - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - - - - - Adds an assertion rule to the ones already added by default, and which is evaluated before all existing rules. - NOTE: These assertion rules do not apply to the root object. - - - - - Adds an equivalency step rule to the ones already added by default, and which is evaluated before previous user-registered steps - - - - - Causes all collections to be compared in the order in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes the collection identified by the provided to be compared in the order - in which the items appear in the expectation. - - - - - Causes to compare Enum properties using the result of their ToString method. - - - By default, enums are compared by value. - - - - - Causes to compare Enum members using their underlying value only. - - - This is the default. - - - - - Marks the as a value type which must be compared using its - method. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of type - - - - - Allows overriding the way structural equality is applied to particular members. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Ensures that types that are marked as value types are treated as such. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - - - - - - Obtains the for a particular event of the . - - The object for which to get an event recorder. - The name of the event. - - - - - Records activity for a single event. - - - - - - The object events are recorded from - The name of the event that's recorded - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Represents an implicit or explicit scope within which multiple assertions can be collected. - - - - - Starts an unnamed scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Starts a named scope within which multiple assertions can be executed and which will not throw until the scope is disposed. - - - - - Creates a nested scope used during chaining. - - - - - Gets the current thread-specific assertion scope. - - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets a value indicating whether or not the last assertion executed through this scope succeeded. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Sets the expectation part of the failure message when the assertion is not met. - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Allows to safely select the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - - - Specify the condition that must be satisfied. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Discards and returns the failures that happened up to now. - - - - - Gets data associated with the current scope and identified by . - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Represents a collection of data items that are associated with an . - - - - - Enables chaining multiple assertions on an . - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Enables chaining multiple assertions from a call. - - - - - Continuous the assertion chain if the previous assertion was successful. - - - - - Provides back-wards compatibility for code that expects to return a boolean. - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional assertion. - - - - - Represents a chaining object returned from to continue the assertion using - an object returned by a selector. - - - - - Specify the condition that must be satisfied upon the subject selected through a prior selector. - - - If true the assertion will be treated as successful and no exceptions will be thrown. - - - The condition will not be evaluated if the prior assertion failed, nor will - throw any exceptions. - - - - - Allows to safely refine the subject for successive assertions, even when the prior assertion has failed. - - - Selector which result is passed to successive calls to . - - - The selector will not be invoked if the prior assertion failed, nor will - throw any exceptions. - - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Sets the failure message when the assertion is not met, or completes the failure message set to a - prior call to to . - - - In addition to the numbered -style placeholders, messages may contain a few - specialized placeholders as well. For instance, {reason} will be replaced with the reason of the assertion as passed - to . Other named placeholders will be replaced with the scope data - passed through and . Finally, a description of the - current subject can be passed through the {context:description} placeholder. This is used in the message if no - explicit context is specified through the constructor. - Note that only 10 are supported in combination with a {reason}. - If an expectation was set through a prior call to , then the failure message is appended to that - expectation. - - The format string that represents the failure message. - Optional arguments to any numbered placeholders. - - - - Defines a strategy for handling failures in a . - - - - - Returns the messages for the assertion failures that happened until now. - - - - - Instructs the strategy to handle a assertion failure. - - - - - Discards and returns the failure messages that happened up to now. - - - - - Will throw a combined exception for any failures have been collected since was called. - - - - - Custom version of ICloneable that works on all frameworks. - - - - - Creates a new object that is a copy of the current instance. - - - - A new object that is a copy of this instance. - - - - - Encapsulates expanding the various placeholders supported in a failure message. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Determines whether data associated with an should be included in the assertion failure. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Removes a custom formatter that was previously added though . - - - - - Ensures a custom formatter is included in the chain, just before the default formatter is executed. - - - - - Allows a platform-specific assembly to add formatters without affecting the ones added by callers of . - - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a double value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a decimal value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current or is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Asserts that the current has the date. - - The expected date portion of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is not true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable or is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using its method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and has a specified flag - - The expected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object is an enum and does not have a specified flag - - The unexpected flag. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current object has not been initialized yet. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current object has been initialized. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is of the specified type . - - - The type that the subject is supposed to be of. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be satisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a regular expression. - - - The regular expression with which the subject is matched. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not start with the specified value, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not end with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragment of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragment of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Returns the type of the subject the assertion applies on. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Ignores the difference between environment newline differences - - - - - Provides the logic and the display text for a . - - - - - Provides extension methods for monitoring and querying events. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurrences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Gets the that is being asserted. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Gets the exception object of the exception thrown. - - - - - Gets the exception object of the exception thrown. - - - - - Returns the type of the subject the assertion applies on. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception of the exact type (and not a derived exception type). - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of ticks. - - - - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for filtering a collection of types. - - - - - Filters to only include types decorated with a particular attribute. - - - - - Filters to only include types where the namespace of type is exactly . - - - - - Filters to only include types where the namespace of type is starts with . - - - - - Filters to only include types that subclass the specified type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - The constructorInfo from which to select properties. - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected member is not decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected member has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected method is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected method is async. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected MethodInfo returns void. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected MethodInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Gets the object which value is being asserted. - - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the selected property is virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a setter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property has a getter with the specified C# access modifier. - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property does not have a getter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected property returns a specified type. - - The expected type of the property. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected PropertyInfo returns . - - The expected return type. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that have a public or internal getter. - - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains assertions for the objects returned by the parent . - - - - - Gets the object which value is being asserted. - - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties have a setter. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected properties are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts than an instance of the subject type is assignable variable of type . - - The type to which instances of the type should be assignable. - The reason why instances of the type should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Creates an error message in case the specified type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current implements Interface . - - The interface that should be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should be not implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current does not implement Interface . - - The interface that should not be implemented. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current is derived from . - - The Type that should be derived from. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a property of type named . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the property. - The name of the property. - - - - Asserts that the current type has a property of type named . - - The type of the property. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have a property named . - - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a property named - from interface . - - The interface whose member is being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The type of the interface. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a property named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type explicitly implements a method named - from interface . - - The interface whose member is being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The type of the interface. - The name of the method. - The expected types of the method parameters. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not explicitly implement a method named - from interface . - - The interface whose member is not being explicitly implemented. - The name of the method. - The expected types of the method parameters. - /// A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has an indexer of type . - with parameter types . - - The type of the indexer. - The parameter types for the indexer. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type does not have an indexer that takes parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The expected indexer's parameter types. - - - - Asserts that the current type has a method named with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The name of the method. - The parameter types for the indexer. - - - - Asserts that the current type does not expose a method named - with parameter types . - - The name of the method. - The method parameter types. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the current type has a constructor with parameter types . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - The type of the indexer. - The parameter types for the indexer. - - - - Asserts that the current type has a default constructor. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . - - - - Asserts that the selected type has the specified C# . - - The expected C# access modifier. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns the type of the subject the assertion applies on. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Gets the object which value is being asserted. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - -
-
diff --git a/src/packages/Moq.4.2.1312.1622/Moq.4.2.1312.1622.nupkg b/src/packages/Moq.4.2.1312.1622/Moq.4.2.1312.1622.nupkg deleted file mode 100644 index 886afe4..0000000 Binary files a/src/packages/Moq.4.2.1312.1622/Moq.4.2.1312.1622.nupkg and /dev/null differ diff --git a/src/packages/Moq.4.2.1312.1622/lib/net35/Moq.dll b/src/packages/Moq.4.2.1312.1622/lib/net35/Moq.dll deleted file mode 100644 index 6988463..0000000 Binary files a/src/packages/Moq.4.2.1312.1622/lib/net35/Moq.dll and /dev/null differ diff --git a/src/packages/Moq.4.2.1312.1622/lib/net35/Moq.xml b/src/packages/Moq.4.2.1312.1622/lib/net35/Moq.xml deleted file mode 100644 index 3280b36..0000000 --- a/src/packages/Moq.4.2.1312.1622/lib/net35/Moq.xml +++ /dev/null @@ -1,6034 +0,0 @@ - - - - Moq - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Handle interception - - the current invocation context - shared data among the strategies during an interception - true if further interception has to be processed, otherwise false - - - - Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person> - are possible. Only covers the covariant members of Mock<T>. - - - - - Exposes the mocked object instance. - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - Searches also in non public events. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Defines the Callback verb and overloads. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Calls the real method of the object and returns its return value. - - The value calculated by the real method of the object. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - Calls original method - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - If this is a mock of a delegate, this property contains the method - on the autogenerated interface so that we can convert setup + verify - expressions on the delegate into expressions on the interface proxy. - - - - - Allows to check whether expression conversion to the - must be performed on the mock, without causing unnecessarily early initialization of - the mock instance, which breaks As{T}. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Calls the real property of the object and returns its return value. - - The value calculated by the real property of the object. - - - - Implements the fluent API. - - - - - Encapsulates a method that has five parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has five parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has six parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has six parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has seven parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has seven parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has eight parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has eight parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has nine parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has nine parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has ten parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has ten parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has eleven parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has eleven parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has twelve parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has twelve parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has thirteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has thirteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has fourteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has fourteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has fifteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has fifteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has sixteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the sixteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The sixteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has sixteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the sixteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The sixteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Provides additional methods on mocks. - - - Those methods are useful for Testeroids support. - - - - - Resets the calls previously made on the specified mock. - - The mock whose calls need to be reset. - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Exposes the mocked object instance. - - - - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Extracts, into a common form, information from a - around either a (for a normal method call) - or a (for a delegate invocation). - - - - - Tests if a type is a delegate type (subclasses ). - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value of the given type, except null. - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with value from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(values))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with a value of 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(1, 2, 3))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument with value not found from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(values))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument of any value except 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(1, 2, 3))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Indicates whether this exception is a verification fault raised by Verify() - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Supports the serialization infrastructure. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Gets an autogenerated interface with a method on it that matches the signature of the specified - . - - - Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance. - This is how we support delegate mocking. The factory caches such interfaces and reuses them - for repeated requests for the same delegate type. - - The delegate type for which an interface is required. - The method on the autogenerated interface. - - - - - - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/src/packages/Moq.4.2.1312.1622/lib/net40/Moq.dll b/src/packages/Moq.4.2.1312.1622/lib/net40/Moq.dll deleted file mode 100644 index 9f32452..0000000 Binary files a/src/packages/Moq.4.2.1312.1622/lib/net40/Moq.dll and /dev/null differ diff --git a/src/packages/Moq.4.2.1312.1622/lib/net40/Moq.xml b/src/packages/Moq.4.2.1312.1622/lib/net40/Moq.xml deleted file mode 100644 index 89492fa..0000000 --- a/src/packages/Moq.4.2.1312.1622/lib/net40/Moq.xml +++ /dev/null @@ -1,5401 +0,0 @@ - - - - Moq - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Handle interception - - the current invocation context - shared data among the strategies during an interception - true if further interception has to be processed, otherwise false - - - - Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person> - are possible. Only covers the covariant members of Mock<T>. - - - - - Exposes the mocked object instance. - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - Searches also in non public events. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Defines the Callback verb and overloads. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Calls the real method of the object and returns its return value. - - The value calculated by the real method of the object. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Defines async extension methods on IReturns. - - - - - Allows to specify the return value of an asynchronous method. - - - - - Allows to specify the exception thrown by an asynchronous method. - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - Calls original method - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - If this is a mock of a delegate, this property contains the method - on the autogenerated interface so that we can convert setup + verify - expressions on the delegate into expressions on the interface proxy. - - - - - Allows to check whether expression conversion to the - must be performed on the mock, without causing unnecessarily early initialization of - the mock instance, which breaks As{T}. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Calls the real property of the object and returns its return value. - - The value calculated by the real property of the object. - - - - Implements the fluent API. - - - - - Provides additional methods on mocks. - - - Those methods are useful for Testeroids support. - - - - - Resets the calls previously made on the specified mock. - - The mock whose calls need to be reset. - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Exposes the mocked object instance. - - - - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Extracts, into a common form, information from a - around either a (for a normal method call) - or a (for a delegate invocation). - - - - - Tests if a type is a delegate type (subclasses ). - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value of the given type, except null. - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with value from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(values))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with a value of 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(1, 2, 3))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument with value not found from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(values))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument of any value except 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(1, 2, 3))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Indicates whether this exception is a verification fault raised by Verify() - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Supports the serialization infrastructure. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Gets an autogenerated interface with a method on it that matches the signature of the specified - . - - - Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance. - This is how we support delegate mocking. The factory caches such interfaces and reuses them - for repeated requests for the same delegate type. - - The delegate type for which an interface is required. - The method on the autogenerated interface. - - - - - - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/src/packages/Moq.4.2.1312.1622/lib/sl4/Moq.Silverlight.dll b/src/packages/Moq.4.2.1312.1622/lib/sl4/Moq.Silverlight.dll deleted file mode 100644 index f53a549..0000000 Binary files a/src/packages/Moq.4.2.1312.1622/lib/sl4/Moq.Silverlight.dll and /dev/null differ diff --git a/src/packages/Moq.4.2.1312.1622/lib/sl4/Moq.Silverlight.xml b/src/packages/Moq.4.2.1312.1622/lib/sl4/Moq.Silverlight.xml deleted file mode 100644 index 221dd8b..0000000 --- a/src/packages/Moq.4.2.1312.1622/lib/sl4/Moq.Silverlight.xml +++ /dev/null @@ -1,5353 +0,0 @@ - - - - Moq.Silverlight - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - If this is a mock of a delegate, this property contains the method - on the autogenerated interface so that we can convert setup + verify - expressions on the delegate into expressions on the interface proxy. - - - - - Allows to check whether expression conversion to the - must be performed on the mock, without causing unnecessarily early initialization of - the mock instance, which breaks As{T}. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person> - are possible. Only covers the covariant members of Mock<T>. - - - - - Exposes the mocked object instance. - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Exposes the mocked object instance. - - - - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Extracts, into a common form, information from a - around either a (for a normal method call) - or a (for a delegate invocation). - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Tests if a type is a delegate type (subclasses ). - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Handle interception - - the current invocation context - shared data among the strategies during an interception - true if further interception has to be processed, otherwise false - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - Searches also in non public events. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value of the given type, except null. - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with value from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(values))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with a value of 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(1, 2, 3))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument with value not found from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(values))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument of any value except 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(1, 2, 3))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Implements the fluent API. - - - - - Defines the Callback verb and overloads. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Calls the real method of the object and returns its return value. - - The value calculated by the real method of the object. - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Calls the real property of the object and returns its return value. - - The value calculated by the real property of the object. - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - Calls original method - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Indicates whether this exception is a verification fault raised by Verify() - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Gets an autogenerated interface with a method on it that matches the signature of the specified - . - - - Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance. - This is how we support delegate mocking. The factory caches such interfaces and reuses them - for repeated requests for the same delegate type. - - The delegate type for which an interface is required. - The method on the autogenerated interface. - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/src/packages/Moq.4.2.1510.2205/Moq.4.2.1510.2205.nupkg b/src/packages/Moq.4.2.1510.2205/Moq.4.2.1510.2205.nupkg deleted file mode 100644 index f4bfa25..0000000 Binary files a/src/packages/Moq.4.2.1510.2205/Moq.4.2.1510.2205.nupkg and /dev/null differ diff --git a/src/packages/Moq.4.2.1510.2205/lib/net35/Moq.dll b/src/packages/Moq.4.2.1510.2205/lib/net35/Moq.dll deleted file mode 100644 index 9325f29..0000000 Binary files a/src/packages/Moq.4.2.1510.2205/lib/net35/Moq.dll and /dev/null differ diff --git a/src/packages/Moq.4.2.1510.2205/lib/net35/Moq.xml b/src/packages/Moq.4.2.1510.2205/lib/net35/Moq.xml deleted file mode 100644 index 427f8e6..0000000 --- a/src/packages/Moq.4.2.1510.2205/lib/net35/Moq.xml +++ /dev/null @@ -1,6088 +0,0 @@ - - - - Moq - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Handle interception - - the current invocation context - shared data for the interceptor as a whole - shared data among the strategies during a single interception - InterceptionAction.Continue if further interception has to be processed, otherwise InterceptionAction.Stop - - - - Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person> - are possible. Only covers the covariant members of Mock<T>. - - - - - Exposes the mocked object instance. - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - Searches also in non public events. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Defines the Callback verb and overloads. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Calls the real method of the object and returns its return value. - - The value calculated by the real method of the object. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Hook used to tells Castle which methods to proxy in mocked classes. - - Here we proxy the default methods Castle suggests (everything Object's methods) - plus Object.ToString(), so we can give mocks useful default names. - - This is required to allow Moq to mock ToString on proxy *class* implementations. - - - - - Extends AllMethodsHook.ShouldInterceptMethod to also intercept Object.ToString(). - - - - - The base class used for all our interface-inheriting proxies, which overrides the default - Object.ToString() behavior, to route it via the mock by default, unless overriden by a - real implementation. - - This is required to allow Moq to mock ToString on proxy *interface* implementations. - - - This is internal to Moq and should not be generally used. - - Unfortunately it must be public, due to cross-assembly visibility issues with reflection, - see github.com/Moq/moq4/issues/98 for details. - - - - - Overrides the default ToString implementation to instead find the mock for this mock.Object, - and return MockName + '.Object' as the mocked object's ToString, to make it easy to relate - mocks and mock object instances in error messages. - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - Calls original method - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - If this is a mock of a delegate, this property contains the method - on the autogenerated interface so that we can convert setup + verify - expressions on the delegate into expressions on the interface proxy. - - - - - Allows to check whether expression conversion to the - must be performed on the mock, without causing unnecessarily early initialization of - the mock instance, which breaks As{T}. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Calls the real property of the object and returns its return value. - - The value calculated by the real property of the object. - - - - Implements the fluent API. - - - - - Encapsulates a method that has five parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has five parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has six parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has six parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has seven parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has seven parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has eight parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has eight parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has nine parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has nine parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has ten parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has ten parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has eleven parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has eleven parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has twelve parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has twelve parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has thirteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has thirteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has fourteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has fourteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has fifteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has fifteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has sixteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the sixteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The sixteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has sixteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the sixteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The sixteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Provides additional methods on mocks. - - - Those methods are useful for Testeroids support. - - - - - Resets the calls previously made on the specified mock. - - The mock whose calls need to be reset. - - - - Resets mock state, including setups and any previously made calls. - - The mock that needs to be reset. - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the name of the mock - - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjunction - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjunction - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Exposes the mocked object instance. - - - - - Allows naming of your mocks, so they can be easily identified in error messages (e.g. from failed assertions). - - - - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Extracts, into a common form, information from a - around either a (for a normal method call) - or a (for a delegate invocation). - - - - - Tests if a type is a delegate type (subclasses ). - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value of the given type, except null. - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with value from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(values))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with a value of 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(1, 2, 3))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument with value not found from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(values))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument of any value except 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(1, 2, 3))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Indicates whether this exception is a verification fault raised by Verify() - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Supports the serialization infrastructure. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Gets an autogenerated interface with a method on it that matches the signature of the specified - . - - - Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance. - This is how we support delegate mocking. The factory caches such interfaces and reuses them - for repeated requests for the same delegate type. - - The delegate type for which an interface is required. - The method on the autogenerated interface. - - - - - - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/src/packages/Moq.4.2.1510.2205/lib/net40/Moq.dll b/src/packages/Moq.4.2.1510.2205/lib/net40/Moq.dll deleted file mode 100644 index f5b1545..0000000 Binary files a/src/packages/Moq.4.2.1510.2205/lib/net40/Moq.dll and /dev/null differ diff --git a/src/packages/Moq.4.2.1510.2205/lib/net40/Moq.xml b/src/packages/Moq.4.2.1510.2205/lib/net40/Moq.xml deleted file mode 100644 index 7fb7616..0000000 --- a/src/packages/Moq.4.2.1510.2205/lib/net40/Moq.xml +++ /dev/null @@ -1,5455 +0,0 @@ - - - - Moq - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Handle interception - - the current invocation context - shared data for the interceptor as a whole - shared data among the strategies during a single interception - InterceptionAction.Continue if further interception has to be processed, otherwise InterceptionAction.Stop - - - - Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person> - are possible. Only covers the covariant members of Mock<T>. - - - - - Exposes the mocked object instance. - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - Searches also in non public events. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Defines the Callback verb and overloads. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Calls the real method of the object and returns its return value. - - The value calculated by the real method of the object. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Hook used to tells Castle which methods to proxy in mocked classes. - - Here we proxy the default methods Castle suggests (everything Object's methods) - plus Object.ToString(), so we can give mocks useful default names. - - This is required to allow Moq to mock ToString on proxy *class* implementations. - - - - - Extends AllMethodsHook.ShouldInterceptMethod to also intercept Object.ToString(). - - - - - The base class used for all our interface-inheriting proxies, which overrides the default - Object.ToString() behavior, to route it via the mock by default, unless overriden by a - real implementation. - - This is required to allow Moq to mock ToString on proxy *interface* implementations. - - - This is internal to Moq and should not be generally used. - - Unfortunately it must be public, due to cross-assembly visibility issues with reflection, - see github.com/Moq/moq4/issues/98 for details. - - - - - Overrides the default ToString implementation to instead find the mock for this mock.Object, - and return MockName + '.Object' as the mocked object's ToString, to make it easy to relate - mocks and mock object instances in error messages. - - - - - Defines async extension methods on IReturns. - - - - - Allows to specify the return value of an asynchronous method. - - - - - Allows to specify the exception thrown by an asynchronous method. - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - Calls original method - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - If this is a mock of a delegate, this property contains the method - on the autogenerated interface so that we can convert setup + verify - expressions on the delegate into expressions on the interface proxy. - - - - - Allows to check whether expression conversion to the - must be performed on the mock, without causing unnecessarily early initialization of - the mock instance, which breaks As{T}. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Calls the real property of the object and returns its return value. - - The value calculated by the real property of the object. - - - - Implements the fluent API. - - - - - Provides additional methods on mocks. - - - Those methods are useful for Testeroids support. - - - - - Resets the calls previously made on the specified mock. - - The mock whose calls need to be reset. - - - - Resets mock state, including setups and any previously made calls. - - The mock that needs to be reset. - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the name of the mock - - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjunction - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjunction - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Exposes the mocked object instance. - - - - - Allows naming of your mocks, so they can be easily identified in error messages (e.g. from failed assertions). - - - - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Extracts, into a common form, information from a - around either a (for a normal method call) - or a (for a delegate invocation). - - - - - Tests if a type is a delegate type (subclasses ). - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value of the given type, except null. - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with value from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(values))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with a value of 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(1, 2, 3))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument with value not found from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(values))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument of any value except 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(1, 2, 3))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Indicates whether this exception is a verification fault raised by Verify() - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Supports the serialization infrastructure. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Gets an autogenerated interface with a method on it that matches the signature of the specified - . - - - Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance. - This is how we support delegate mocking. The factory caches such interfaces and reuses them - for repeated requests for the same delegate type. - - The delegate type for which an interface is required. - The method on the autogenerated interface. - - - - - - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/src/packages/Moq.4.2.1510.2205/lib/sl5/Moq.Silverlight.dll b/src/packages/Moq.4.2.1510.2205/lib/sl5/Moq.Silverlight.dll deleted file mode 100644 index 4c3eaf2..0000000 Binary files a/src/packages/Moq.4.2.1510.2205/lib/sl5/Moq.Silverlight.dll and /dev/null differ diff --git a/src/packages/Moq.4.2.1510.2205/lib/sl5/Moq.Silverlight.xml b/src/packages/Moq.4.2.1510.2205/lib/sl5/Moq.Silverlight.xml deleted file mode 100644 index 84fad8a..0000000 --- a/src/packages/Moq.4.2.1510.2205/lib/sl5/Moq.Silverlight.xml +++ /dev/null @@ -1,5416 +0,0 @@ - - - - Moq.Silverlight - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - If this is a mock of a delegate, this property contains the method - on the autogenerated interface so that we can convert setup + verify - expressions on the delegate into expressions on the interface proxy. - - - - - Allows to check whether expression conversion to the - must be performed on the mock, without causing unnecessarily early initialization of - the mock instance, which breaks As{T}. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person> - are possible. Only covers the covariant members of Mock<T>. - - - - - Exposes the mocked object instance. - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the name of the mock - - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjunction with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjunction - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjunction - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Exposes the mocked object instance. - - - - - Allows naming of your mocks, so they can be easily identified in error messages (e.g. from failed assertions). - - - - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Extracts, into a common form, information from a - around either a (for a normal method call) - or a (for a delegate invocation). - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Tests if a type is a delegate type (subclasses ). - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Handle interception - - the current invocation context - shared data for the interceptor as a whole - shared data among the strategies during a single interception - InterceptionAction.Continue if further interception has to be processed, otherwise InterceptionAction.Stop - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - Searches also in non public events. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value of the given type, except null. - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with value from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(values))) - .Returns(false); - - - - - - Matches any value that is present in the sequence specified. - Type of the argument to check.The sequence of possible values. - The following example shows how to expect a method call - with an integer argument with a value of 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsIn(1, 2, 3))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument with value not found from a list. - - var values = new List<int> { 1, 2, 3 }; - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(values))) - .Returns(false); - - - - - - Matches any value that is not found in the sequence specified. - Type of the argument to check.The sequence of disallowed values. - The following example shows how to expect a method call - with an integer argument of any value except 1, 2, or 3. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsNotIn(1, 2, 3))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Implements the fluent API. - - - - - Defines the Callback verb and overloads. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Calls the real method of the object and returns its return value. - - The value calculated by the real method of the object. - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Calls the real property of the object and returns its return value. - - The value calculated by the real property of the object. - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - Calls original method - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Indicates whether this exception is a verification fault raised by Verify() - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjunction with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Gets an autogenerated interface with a method on it that matches the signature of the specified - . - - - Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance. - This is how we support delegate mocking. The factory caches such interfaces and reuses them - for repeated requests for the same delegate type. - - The delegate type for which an interface is required. - The method on the autogenerated interface. - - - - - - - - - - Hook used to tells Castle which methods to proxy in mocked classes. - - Here we proxy the default methods Castle suggests (everything Object's methods) - plus Object.ToString(), so we can give mocks useful default names. - - This is required to allow Moq to mock ToString on proxy *class* implementations. - - - - - Extends AllMethodsHook.ShouldInterceptMethod to also intercept Object.ToString(). - - - - - The base class used for all our interface-inheriting proxies, which overrides the default - Object.ToString() behavior, to route it via the mock by default, unless overriden by a - real implementation. - - This is required to allow Moq to mock ToString on proxy *interface* implementations. - - - This is internal to Moq and should not be generally used. - - Unfortunately it must be public, due to cross-assembly visibility issues with reflection, - see github.com/Moq/moq4/issues/98 for details. - - - - - Overrides the default ToString implementation to instead find the mock for this mock.Object, - and return MockName + '.Object' as the mocked object's ToString, to make it easy to relate - mocks and mock object instances in error messages. - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Defines async extension methods on IReturns. - - - - - Allows to specify the return value of an asynchronous method. - - - - - Allows to specify the exception thrown by an asynchronous method. - - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/src/packages/ZooKeeper.Net.3.4.6.2/ZooKeeper.Net.3.4.6.2.nupkg b/src/packages/ZooKeeper.Net.3.4.6.2/ZooKeeper.Net.3.4.6.2.nupkg deleted file mode 100644 index ca4f901..0000000 Binary files a/src/packages/ZooKeeper.Net.3.4.6.2/ZooKeeper.Net.3.4.6.2.nupkg and /dev/null differ diff --git a/src/packages/ZooKeeper.Net.3.4.6.2/lib/net40/ZooKeeperNet.dll b/src/packages/ZooKeeper.Net.3.4.6.2/lib/net40/ZooKeeperNet.dll deleted file mode 100644 index cb7262f..0000000 Binary files a/src/packages/ZooKeeper.Net.3.4.6.2/lib/net40/ZooKeeperNet.dll and /dev/null differ diff --git a/src/packages/log4net.1.2.10/lib/1.0/log4net.dll b/src/packages/log4net.1.2.10/lib/1.0/log4net.dll deleted file mode 100644 index 9e8d77b..0000000 Binary files a/src/packages/log4net.1.2.10/lib/1.0/log4net.dll and /dev/null differ diff --git a/src/packages/log4net.1.2.10/lib/1.0/log4net.xml b/src/packages/log4net.1.2.10/lib/1.0/log4net.xml deleted file mode 100644 index c1b2bc6..0000000 --- a/src/packages/log4net.1.2.10/lib/1.0/log4net.xml +++ /dev/null @@ -1,28655 +0,0 @@ - - - - log4net - - - - - Appender that logs to a database. - - - - appends logging events to a table within a - database. The appender can be configured to specify the connection - string by setting the property. - The connection type (provider) can be specified by setting the - property. For more information on database connection strings for - your specific database see http://www.connectionstrings.com/. - - - Records are written into the database either using a prepared - statement or a stored procedure. The property - is set to (System.Data.CommandType.Text) to specify a prepared statement - or to (System.Data.CommandType.StoredProcedure) to specify a stored - procedure. - - - The prepared statement text or the name of the stored procedure - must be set in the property. - - - The prepared statement or stored procedure can take a number - of parameters. Parameters are added using the - method. This adds a single to the - ordered list of parameters. The - type may be subclassed if required to provide database specific - functionality. The specifies - the parameter name, database type, size, and how the value should - be generated using a . - - - - An example of a SQL Server table that could be logged to: - - CREATE TABLE [dbo].[Log] ( - [ID] [int] IDENTITY (1, 1) NOT NULL , - [Date] [datetime] NOT NULL , - [Thread] [varchar] (255) NOT NULL , - [Level] [varchar] (20) NOT NULL , - [Logger] [varchar] (255) NOT NULL , - [Message] [varchar] (4000) NOT NULL - ) ON [PRIMARY] - - - - An example configuration to log to the above table: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Julian Biddle - Nicko Cadell - Gert Driesen - Lance Nehring - - - - Abstract base class implementation of that - buffers events in a fixed size buffer. - - - - This base class should be used by appenders that need to buffer a - number of events before logging them. For example the - buffers events and then submits the entire contents of the buffer to - the underlying database in one go. - - - Subclasses should override the - method to deliver the buffered events. - - The BufferingAppenderSkeleton maintains a fixed size cyclic - buffer of events. The size of the buffer is set using - the property. - - A is used to inspect - each event as it arrives in the appender. If the - triggers, then the current buffer is sent immediately - (see ). Otherwise the event - is stored in the buffer. For example, an evaluator can be used to - deliver the events immediately when an ERROR event arrives. - - - The buffering appender can be configured in a mode. - By default the appender is NOT lossy. When the buffer is full all - the buffered events are sent with . - If the property is set to true then the - buffer will not be sent when it is full, and new events arriving - in the appender will overwrite the oldest event in the buffer. - In lossy mode the buffer will only be sent when the - triggers. This can be useful behavior when you need to know about - ERROR events but not about events with a lower level, configure an - evaluator that will trigger when an ERROR event arrives, the whole - buffer will be sent which gives a history of events leading up to - the ERROR event. - - - Nicko Cadell - Gert Driesen - - - - Abstract base class implementation of . - - - - This class provides the code for common functionality, such - as support for threshold filtering and support for general filters. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface for your own strategies for printing log statements. - - - - Implementors should consider extending the - class which provides a default implementation of this interface. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Log the logging event in Appender specific way. - - The event to log - - - This method is called to log a message into this appender. - - - - - - Gets or sets the name of this appender. - - The name of the appender. - - The name uniquely identifies the appender. - - - - - Interface for appenders that support bulk logging. - - - - This interface extends the interface to - support bulk logging of objects. Appenders - should only implement this interface if they can bulk log efficiently. - - - Nicko Cadell - - - - Log the array of logging events in Appender specific way. - - The events to log - - - This method is called to log an array of events into this appender. - - - - - - Interface used to delay activate a configured object. - - - - This allows an object to defer activation of its options until all - options have been set. This is required for components which have - related options that remain ambiguous until all are set. - - - If a component implements this interface then the method - must be called by the container after its all the configured properties have been set - and before the component can be used. - - - Nicko Cadell - - - - Activate the options that were previously set with calls to properties. - - - - This allows an object to defer activation of its options until all - options have been set. This is required for components which have - related options that remain ambiguous until all are set. - - - If a component implements this interface then this method must be called - after its properties have been set before the component can be used. - - - - - - Initial buffer size - - - - - Maximum buffer size before it is recycled - - - - - Default constructor - - - Empty default constructor - - - - - Finalizes this appender by calling the implementation's - method. - - - - If this appender has not been closed then the Finalize method - will call . - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Closes the appender and release resources. - - - - Release any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - This method cannot be overridden by subclasses. This method - delegates the closing of the appender to the - method which must be overridden in the subclass. - - - - - - Performs threshold checks and invokes filters before - delegating actual logging to the subclasses specific - method. - - The event to log. - - - This method cannot be overridden by derived classes. A - derived class should override the method - which is called by this method. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - Calls and checks that - it returns true. - - - - - If all of the above steps succeed then the - will be passed to the abstract method. - - - - - - Performs threshold checks and invokes filters before - delegating actual logging to the subclasses specific - method. - - The array of events to log. - - - This method cannot be overridden by derived classes. A - derived class should override the method - which is called by this method. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - Calls and checks that - it returns true. - - - - - If all of the above steps succeed then the - will be passed to the method. - - - - - - Test if the logging event should we output by this appender - - the event to test - true if the event should be output, false if the event should be ignored - - - This method checks the logging event against the threshold level set - on this appender and also against the filters specified on this - appender. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - - - - - Adds a filter to the end of the filter chain. - - the filter to add to this appender - - - The Filters are organized in a linked list. - - - Setting this property causes the new filter to be pushed onto the - back of the filter chain. - - - - - - Clears the filter list for this appender. - - - - Clears the filter list for this appender. - - - - - - Checks if the message level is below this appender's threshold. - - to test against. - - - If there is no threshold set, then the return value is always true. - - - - true if the meets the - requirements of this appender. - - - - - Is called when the appender is closed. Derived classes should override - this method if resources need to be released. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Subclasses of should implement this method - to perform actual logging. - - The event to append. - - - A subclass must implement this method to perform - logging of the . - - This method will be called by - if all the conditions listed for that method are met. - - - To restrict the logging of events in the appender - override the method. - - - - - - Append a bulk array of logging events. - - the array of logging events - - - This base class implementation calls the - method for each element in the bulk array. - - - A sub class that can better process a bulk array of events should - override this method in addition to . - - - - - - Called before as a precondition. - - - - This method is called by - before the call to the abstract method. - - - This method can be overridden in a subclass to extend the checks - made before the event is passed to the method. - - - A subclass should ensure that they delegate this call to - this base class if it is overridden. - - - true if the call to should proceed. - - - - Renders the to a string. - - The event to render. - The event rendered as a string. - - - Helper method to render a to - a string. This appender must have a - set to render the to - a string. - - If there is exception data in the logging event and - the layout does not process the exception, this method - will append the exception text to the rendered string. - - - Where possible use the alternative version of this method - . - That method streams the rendering onto an existing Writer - which can give better performance if the caller already has - a open and ready for writing. - - - - - - Renders the to a string. - - The event to render. - The TextWriter to write the formatted event to - - - Helper method to render a to - a string. This appender must have a - set to render the to - a string. - - If there is exception data in the logging event and - the layout does not process the exception, this method - will append the exception text to the rendered string. - - - Use this method in preference to - where possible. If, however, the caller needs to render the event - to a string then does - provide an efficient mechanism for doing so. - - - - - - The layout of this appender. - - - See for more information. - - - - - The name of this appender. - - - See for more information. - - - - - The level threshold of this appender. - - - - There is no level threshold filtering by default. - - - See for more information. - - - - - - It is assumed and enforced that errorHandler is never null. - - - - It is assumed and enforced that errorHandler is never null. - - - See for more information. - - - - - - The first filter in the filter chain. - - - - Set to null initially. - - - See for more information. - - - - - - The last filter in the filter chain. - - - See for more information. - - - - - Flag indicating if this appender is closed. - - - See for more information. - - - - - The guard prevents an appender from repeatedly calling its own DoAppend method - - - - - StringWriter used to render events - - - - - Gets or sets the threshold of this appender. - - - The threshold of the appender. - - - - All log events with lower level than the threshold level are ignored - by the appender. - - - In configuration files this option is specified by setting the - value of the option to a level - string, such as "DEBUG", "INFO" and so on. - - - - - - Gets or sets the for this appender. - - The of the appender - - - The provides a default - implementation for the property. - - - - - - The filter chain. - - The head of the filter chain filter chain. - - - Returns the head Filter. The Filters are organized in a linked list - and so all Filters on this Appender are available through the result. - - - - - - Gets or sets the for this appender. - - The layout of the appender. - - - See for more information. - - - - - - - Gets or sets the name of this appender. - - The name of the appender. - - - The name uniquely identifies the appender. - - - - - - Tests if this appender requires a to be set. - - - - In the rather exceptional case, where the appender - implementation admits a layout but can also work without it, - then the appender should return true. - - - This default implementation always returns true. - - - - true if the appender requires a layout object, otherwise false. - - - - - The default buffer size. - - - The default size of the cyclic buffer used to store events. - This is set to 512 by default. - - - - - Initializes a new instance of the class. - - - - Protected default constructor to allow subclassing. - - - - - - Initializes a new instance of the class. - - the events passed through this appender must be - fixed by the time that they arrive in the derived class' SendBuffer method. - - - Protected constructor to allow subclassing. - - - The should be set if the subclass - expects the events delivered to be fixed even if the - is set to zero, i.e. when no buffering occurs. - - - - - - Flush the currently buffered events - - - - Flushes any events that have been buffered. - - - If the appender is buffering in mode then the contents - of the buffer will NOT be flushed to the appender. - - - - - - Flush the currently buffered events - - set to true to flush the buffer of lossy events - - - Flushes events that have been buffered. If is - false then events will only be flushed if this buffer is non-lossy mode. - - - If the appender is buffering in mode then the contents - of the buffer will only be flushed if is true. - In this case the contents of the buffer will be tested against the - and if triggering will be output. All other buffered - events will be discarded. - - - If is true then the buffer will always - be emptied by calling this method. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Close this appender instance. - - - - Close this appender instance. If this appender is marked - as not then the remaining events in - the buffer must be sent when the appender is closed. - - - - - - This method is called by the method. - - the event to log - - - Stores the in the cyclic buffer. - - - The buffer will be sent (i.e. passed to the - method) if one of the following conditions is met: - - - - The cyclic buffer is full and this appender is - marked as not lossy (see ) - - - An is set and - it is triggered for the - specified. - - - - Before the event is stored in the buffer it is fixed - (see ) to ensure that - any data referenced by the event will be valid when the buffer - is processed. - - - - - - Sends the contents of the buffer. - - The first logging event. - The buffer containing the events that need to be send. - - - The subclass must override . - - - - - - Sends the events. - - The events that need to be send. - - - The subclass must override this method to process the buffered events. - - - - - - The size of the cyclic buffer used to hold the logging events. - - - Set to by default. - - - - - The cyclic buffer used to store the logging events. - - - - - The triggering event evaluator that causes the buffer to be sent immediately. - - - The object that is used to determine if an event causes the entire - buffer to be sent immediately. This field can be null, which - indicates that event triggering is not to be done. The evaluator - can be set using the property. If this appender - has the ( property) set to - true then an must be set. - - - - - Indicates if the appender should overwrite events in the cyclic buffer - when it becomes full, or if the buffer should be flushed when the - buffer is full. - - - If this field is set to true then an must - be set. - - - - - The triggering event evaluator filters discarded events. - - - The object that is used to determine if an event that is discarded should - really be discarded or if it should be sent to the appenders. - This field can be null, which indicates that all discarded events will - be discarded. - - - - - Value indicating which fields in the event should be fixed - - - By default all fields are fixed - - - - - The events delivered to the subclass must be fixed. - - - - - Gets or sets a value that indicates whether the appender is lossy. - - - true if the appender is lossy, otherwise false. The default is false. - - - - This appender uses a buffer to store logging events before - delivering them. A triggering event causes the whole buffer - to be send to the remote sink. If the buffer overruns before - a triggering event then logging events could be lost. Set - to false to prevent logging events - from being lost. - - If is set to true then an - must be specified. - - - - - Gets or sets the size of the cyclic buffer used to hold the - logging events. - - - The size of the cyclic buffer used to hold the logging events. - - - - The option takes a positive integer - representing the maximum number of logging events to collect in - a cyclic buffer. When the is reached, - oldest events are deleted as new events are added to the - buffer. By default the size of the cyclic buffer is 512 events. - - - If the is set to a value less than - or equal to 1 then no buffering will occur. The logging event - will be delivered synchronously (depending on the - and properties). Otherwise the event will - be buffered. - - - - - - Gets or sets the that causes the - buffer to be sent immediately. - - - The that causes the buffer to be - sent immediately. - - - - The evaluator will be called for each event that is appended to this - appender. If the evaluator triggers then the current buffer will - immediately be sent (see ). - - If is set to true then an - must be specified. - - - - - Gets or sets the value of the to use. - - - The value of the to use. - - - - The evaluator will be called for each event that is discarded from this - appender. If the evaluator triggers then the current buffer will immediately - be sent (see ). - - - - - - Gets or sets a value indicating if only part of the logging event data - should be fixed. - - - true if the appender should only fix part of the logging event - data, otherwise false. The default is false. - - - - Setting this property to true will cause only part of the - event data to be fixed and serialized. This will improve performance. - - - See for more information. - - - - - - Gets or sets a the fields that will be fixed in the event - - - The event fields that will be fixed before the event is buffered - - - - The logging event needs to have certain thread specific values - captured before it can be buffered. See - for details. - - - - - - - Initializes a new instance of the class. - - - Public default constructor to initialize a new instance of this class. - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Override the parent method to close the database - - - - Closes the database command and database connection. - - - - - - Inserts the events into the database. - - The events to insert into the database. - - - Insert all the events specified in the - array into the database. - - - - - - Adds a parameter to the command. - - The parameter to add to the command. - - - Adds a parameter to the ordered list of command parameters. - - - - - - Writes the events to the database using the transaction specified. - - The transaction that the events will be executed under. - The array of events to insert into the database. - - - The transaction argument can be null if the appender has been - configured not to use transactions. See - property for more information. - - - - - - Formats the log message into database statement text. - - The event being logged. - - This method can be overridden by subclasses to provide - more control over the format of the database statement. - - - Text that can be passed to a . - - - - - Connects to the database. - - - - - Retrieves the class type of the ADO.NET provider. - - - - Gets the Type of the ADO.NET provider to use to connect to the - database. This method resolves the type specified in the - property. - - - Subclasses can override this method to return a different type - if necessary. - - - The of the ADO.NET provider - - - - Prepares the database command and initialize the parameters. - - - - - Flag to indicate if we are using a command object - - - - Set to true when the appender is to use a prepared - statement or stored procedure to insert into the database. - - - - - - The list of objects. - - - - The list of objects. - - - - - - The security context to use for privileged calls - - - - - The that will be used - to insert logging events into a database. - - - - - The database command. - - - - - Database connection string. - - - - - String type name of the type name. - - - - - The text of the command. - - - - - The command type. - - - - - Indicates whether to use transactions when writing to the database. - - - - - Indicates whether to use transactions when writing to the database. - - - - - Gets or sets the database connection string that is used to connect to - the database. - - - The database connection string used to connect to the database. - - - - The connections string is specific to the connection type. - See for more information. - - - Connection string for MS Access via ODBC: - "DSN=MS Access Database;UID=admin;PWD=;SystemDB=C:\data\System.mdw;SafeTransactions = 0;FIL=MS Access;DriverID = 25;DBQ=C:\data\train33.mdb" - - Another connection string for MS Access via ODBC: - "Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Work\cvs_root\log4net-1.2\access.mdb;UID=;PWD=;" - - Connection string for MS Access via OLE DB: - "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\cvs_root\log4net-1.2\access.mdb;User Id=;Password=;" - - - - - Gets or sets the type name of the connection - that should be created. - - - The type name of the connection. - - - - The type name of the ADO.NET provider to use. - - - The default is to use the OLE DB provider. - - - Use the OLE DB Provider. This is the default value. - System.Data.OleDb.OleDbConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Use the MS SQL Server Provider. - System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Use the ODBC Provider. - Microsoft.Data.Odbc.OdbcConnection,Microsoft.Data.Odbc,version=1.0.3300.0,publicKeyToken=b77a5c561934e089,culture=neutral - This is an optional package that you can download from - http://msdn.microsoft.com/downloads - search for ODBC .NET Data Provider. - - Use the Oracle Provider. - System.Data.OracleClient.OracleConnection, System.Data.OracleClient, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - This is an optional package that you can download from - http://msdn.microsoft.com/downloads - search for .NET Managed Provider for Oracle. - - - - - Gets or sets the command text that is used to insert logging events - into the database. - - - The command text used to insert logging events into the database. - - - - Either the text of the prepared statement or the - name of the stored procedure to execute to write into - the database. - - - The property determines if - this text is a prepared statement or a stored procedure. - - - - - - Gets or sets the command type to execute. - - - The command type to execute. - - - - This value may be either (System.Data.CommandType.Text) to specify - that the is a prepared statement to execute, - or (System.Data.CommandType.StoredProcedure) to specify that the - property is the name of a stored procedure - to execute. - - - The default value is (System.Data.CommandType.Text). - - - - - - Should transactions be used to insert logging events in the database. - - - true if transactions should be used to insert logging events in - the database, otherwise false. The default value is true. - - - - Gets or sets a value that indicates whether transactions should be used - to insert logging events in the database. - - - When set a single transaction will be used to insert the buffered events - into the database. Otherwise each event will be inserted without using - an explicit transaction. - - - - - - Gets or sets the used to call the NetSend method. - - - The used to call the NetSend method. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - Should this appender try to reconnect to the database on error. - - - true if the appender should try to reconnect to the database after an - error has occurred, otherwise false. The default value is false, - i.e. not to try to reconnect. - - - - The default behaviour is for the appender not to try to reconnect to the - database if an error occurs. Subsequent logging events are discarded. - - - To force the appender to attempt to reconnect to the database set this - property to true. - - - When the appender attempts to connect to the database there may be a - delay of up to the connection timeout specified in the connection string. - This delay will block the calling application's thread. - Until the connection can be reestablished this potential delay may occur multiple times. - - - - - - Gets or sets the underlying . - - - The underlying . - - - creates a to insert - logging events into a database. Classes deriving from - can use this property to get or set this . Use the - underlying returned from if - you require access beyond that which provides. - - - - - Parameter type used by the . - - - - This class provides the basic database parameter properties - as defined by the interface. - - This type can be subclassed to provide database specific - functionality. The two methods that are called externally are - and . - - - - - - Initializes a new instance of the class. - - - Default constructor for the AdoNetAppenderParameter class. - - - - - Prepare the specified database command object. - - The command to prepare. - - - Prepares the database command object by adding - this parameter to its collection of parameters. - - - - - - Renders the logging event and set the parameter value in the command. - - The command containing the parameter. - The event to be rendered. - - - Renders the logging event using this parameters layout - object. Sets the value of the parameter on the command object. - - - - - - The name of this parameter. - - - - - The database type for this parameter. - - - - - Flag to infer type rather than use the DbType - - - - - The precision for this parameter. - - - - - The scale for this parameter. - - - - - The size for this parameter. - - - - - The to use to render the - logging event into an object for this parameter. - - - - - Gets or sets the name of this parameter. - - - The name of this parameter. - - - - The name of this parameter. The parameter name - must match up to a named parameter to the SQL stored procedure - or prepared statement. - - - - - - Gets or sets the database type for this parameter. - - - The database type for this parameter. - - - - The database type for this parameter. This property should - be set to the database type from the - enumeration. See . - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the type from the value. - - - - - - - Gets or sets the precision for this parameter. - - - The precision for this parameter. - - - - The maximum number of digits used to represent the Value. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the precision from the value. - - - - - - - Gets or sets the scale for this parameter. - - - The scale for this parameter. - - - - The number of decimal places to which Value is resolved. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the scale from the value. - - - - - - - Gets or sets the size for this parameter. - - - The size for this parameter. - - - - The maximum size, in bytes, of the data within the column. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the size from the value. - - - - - - - Gets or sets the to use to - render the logging event into an object for this - parameter. - - - The used to render the - logging event into an object for this parameter. - - - - The that renders the value for this - parameter. - - - The can be used to adapt - any into a - for use in the property. - - - - - - Appends logging events to the terminal using ANSI color escape sequences. - - - - AnsiColorTerminalAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. It also allows the color of a specific level of message to be set. - - - This appender expects the terminal to understand the VT100 control set - in order to interpret the color codes. If the terminal or console does not - understand the control codes the behavior is not defined. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes each message to the System.Console.Out or - System.Console.Error that is set at the time the event is appended. - Therefore it is possible to programmatically redirect the output of this appender - (for example NUnit does this to capture program output). While this is the desired - behavior of this appender it may have security implications in your application. - - - When configuring the ANSI colored terminal appender, a mapping should be - specified to map a logging level to a color. For example: - - - - - - - - - - - - - - - The Level is the standard log4net logging level and ForeColor and BackColor can be any - of the following values: - - Blue - Green - Red - White - Yellow - Purple - Cyan - - These color values cannot be combined together to make new colors. - - - The attributes can be any combination of the following: - - Brightforeground is brighter - Dimforeground is dimmer - Underscoremessage is underlined - Blinkforeground is blinking (does not work on all terminals) - Reverseforeground and background are reversed - Hiddenoutput is hidden - Strikethroughmessage has a line through it - - While any of these attributes may be combined together not all combinations - work well together, for example setting both Bright and Dim attributes makes - no sense. - - - Patrick Wagstrom - Nicko Cadell - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Ansi code to reset terminal - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Add a mapping of level to color - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the foreground and background colours - for a level. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to color mappings set on this appender. - - - - - - Flag to write output to the error stream rather than the standard output stream - - - - - Mapping from level object to color value - - - - - Target is the value of the console output stream. - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - The enum of possible display attributes - - - - The following flags can be combined together to - form the ANSI color attributes. - - - - - - - text is bright - - - - - text is dim - - - - - text is underlined - - - - - text is blinking - - - Not all terminals support this attribute - - - - - text and background colors are reversed - - - - - text is hidden - - - - - text is displayed with a strikethrough - - - - - The enum of possible foreground or background color values for - use with the color mapping method - - - - The output can be in one for the following ANSI colors. - - - - - - - color is black - - - - - color is red - - - - - color is green - - - - - color is yellow - - - - - color is blue - - - - - color is magenta - - - - - color is cyan - - - - - color is white - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and the color it should be displayed in. - - - - - - An entry in the - - - - This is an abstract base class for types that are stored in the - object. - - - Nicko Cadell - - - - Default protected constructor - - - - Default protected constructor - - - - - - Initialize any options defined on this entry - - - - Should be overridden by any classes that need to initialise based on their options - - - - - - The level that is the key for this mapping - - - The that is the key for this mapping - - - - Get or set the that is the key for this - mapping subclass. - - - - - - Initialize the options for the object - - - - Combine the and together - and append the attributes. - - - - - - The mapped foreground color for the specified level - - - - Required property. - The mapped foreground color for the specified level - - - - - - The mapped background color for the specified level - - - - Required property. - The mapped background color for the specified level - - - - - - The color attributes for the specified level - - - - Required property. - The color attributes for the specified level - - - - - - The combined , and - suitable for setting the ansi terminal color. - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a AppenderCollection instance. - - list to create a readonly wrapper arround - - An AppenderCollection wrapper that is read-only. - - - - - An empty readonly static AppenderCollection - - - - - Initializes a new instance of the AppenderCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the AppenderCollection class - that has the specified initial capacity. - - - The number of elements that the new AppenderCollection is initially capable of storing. - - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified AppenderCollection. - - The AppenderCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - - Copies the entire AppenderCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire AppenderCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the AppenderCollection. - - The to be added to the end of the AppenderCollection. - The index at which the value has been added. - - - - Removes all elements from the AppenderCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the AppenderCollection. - - The to check for. - true if is found in the AppenderCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the AppenderCollection. - - The to locate in the AppenderCollection. - - The zero-based index of the first occurrence of - in the entire AppenderCollection, if found; otherwise, -1. - - - - - Inserts an element into the AppenderCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the AppenderCollection. - - The to remove from the AppenderCollection. - - The specified was not found in the AppenderCollection. - - - - - Removes the element at the specified index of the AppenderCollection. - - The zero-based index of the element to remove. - - is less than zero - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the AppenderCollection. - - An for the entire AppenderCollection. - - - - Adds the elements of another AppenderCollection to the current AppenderCollection. - - The AppenderCollection whose elements should be added to the end of the current AppenderCollection. - The new of the AppenderCollection. - - - - Adds the elements of a array to the current AppenderCollection. - - The array whose elements should be added to the end of the AppenderCollection. - The new of the AppenderCollection. - - - - Adds the elements of a collection to the current AppenderCollection. - - The collection whose elements should be added to the end of the AppenderCollection. - The new of the AppenderCollection. - - - - Sets the capacity to the actual number of elements. - - - - - Return the collection elements as an array - - the array - - - - is less than zero - -or- - is equal to or greater than . - - - - - is less than zero - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the AppenderCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - The zero-based index of the element to get or set. - - is less than zero - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false - - - - Gets or sets the number of elements the AppenderCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - - A value - - - - - Supports simple iteration over a . - - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - - - - - Appends log events to the ASP.NET system. - - - - - Diagnostic information and tracing messages that you specify are appended to the output - of the page that is sent to the requesting browser. Optionally, you can view this information - from a separate trace viewer (Trace.axd) that displays trace information for every page in a - given application. - - - Trace statements are processed and displayed only when tracing is enabled. You can control - whether tracing is displayed to a page, to the trace viewer, or both. - - - The logging event is passed to the or - method depending on the level of the logging event. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Write the logging event to the ASP.NET trace - - the event to log - - - Write the logging event to the ASP.NET trace - HttpContext.Current.Trace - (). - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Buffers events and then forwards them to attached appenders. - - - - The events are buffered in this appender until conditions are - met to allow the appender to deliver the events to the attached - appenders. See for the - conditions that cause the buffer to be sent. - - The forwarding appender can be used to specify different - thresholds and filters for the same appender at different locations - within the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Interface for attaching appenders to objects. - - - - Interface for attaching, removing and retrieving appenders. - - - Nicko Cadell - Gert Driesen - - - - Attaches an appender. - - The appender to add. - - - Add the specified appender. The implementation may - choose to allow or deny duplicate appenders. - - - - - - Gets an attached appender with the specified name. - - The name of the appender to get. - - The appender with the name specified, or null if no appender with the - specified name is found. - - - - Returns an attached appender with the specified. - If no appender with the specified name is found null will be - returned. - - - - - - Removes all attached appenders. - - - - Removes and closes all attached appenders - - - - - - Removes the specified appender from the list of attached appenders. - - The appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Gets all attached appenders. - - - A collection of attached appenders. - - - - Gets a collection of attached appenders. - If there are no attached appenders the - implementation should return an empty - collection rather than null. - - - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Send the events. - - The events that need to be send. - - - Forwards the events to the attached appenders. - - - - - - Adds an to the list of appenders of this - instance. - - The to add to this appender. - - - If the specified is already in the list of - appenders, then it won't be added again. - - - - - - Looks for the appender with the specified name. - - The name of the appender to lookup. - - The appender with the specified name, or null. - - - - Get the named appender attached to this buffering appender. - - - - - - Removes all previously added appenders from this appender. - - - - This is useful when re-reading configuration information. - - - - - - Removes the specified appender from the list of appenders. - - The appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Implementation of the interface - - - - - Gets the appenders contained in this appender as an - . - - - If no appenders can be found, then an - is returned. - - - A collection of the appenders in this appender. - - - - - Appends logging events to the console. - - - - ColoredConsoleAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. It also allows the color of a specific type of message to be set. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes directly to the application's attached console - not to the System.Console.Out or System.Console.Error TextWriter. - The System.Console.Out and System.Console.Error streams can be - programmatically redirected (for example NUnit does this to capture program output). - This appender will ignore these redirections because it needs to use Win32 - API calls to colorize the output. To respect these redirections the - must be used. - - - When configuring the colored console appender, mapping should be - specified to map a logging level to a color. For example: - - - - - - - - - - - - - - The Level is the standard log4net logging level and ForeColor and BackColor can be any - combination of the following values: - - Blue - Green - Red - White - Yellow - Purple - Cyan - HighIntensity - - - - Rick Hobbs - Nicko Cadell - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - flag set to true to write to the console error stream - - When is set to true, output is written to - the standard error output stream. Otherwise, output is written to the standard - output stream. - - - - - Add a mapping of level to color - done by the config file - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the foreground and background colors - for a level. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to color mappings set on this appender. - - - - - - Flag to write output to the error stream rather than the standard output stream - - - - - Mapping from level object to color value - - - - - The console output stream writer to write to - - - - This writer is not thread safe. - - - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - The enum of possible color values for use with the color mapping method - - - - The following flags can be combined together to - form the colors. - - - - - - - color is blue - - - - - color is green - - - - - color is red - - - - - color is white - - - - - color is yellow - - - - - color is purple - - - - - color is cyan - - - - - color is intensified - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and the color it should be displayed in. - - - - - - Initialize the options for the object - - - - Combine the and together. - - - - - - The mapped foreground color for the specified level - - - - Required property. - The mapped foreground color for the specified level. - - - - - - The mapped background color for the specified level - - - - Required property. - The mapped background color for the specified level. - - - - - - The combined and suitable for - setting the console color. - - - - - Appends logging events to the console. - - - - ConsoleAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes each message to the System.Console.Out or - System.Console.Error that is set at the time the event is appended. - Therefore it is possible to programmatically redirect the output of this appender - (for example NUnit does this to capture program output). While this is the desired - behavior of this appender it may have security implications in your application. - - - Nicko Cadell - Gert Driesen - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - flag set to true to write to the console error stream - - When is set to true, output is written to - the standard error output stream. Otherwise, output is written to the standard - output stream. - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appends log events to the system. - - - - The application configuration file can be used to control what listeners - are actually used. See the MSDN documentation for the - class for details on configuring the - debug system. - - - Events are written using the - method. The event's logger name is passed as the value for the category name to the Write method. - - - Nicko Cadell - - - - Initializes a new instance of the . - - - - Default constructor. - - - - - - Initializes a new instance of the - with a specified layout. - - The layout to use with this appender. - - - Obsolete constructor. - - - - - - Writes the logging event to the system. - - The event to log. - - - Writes the logging event to the system. - If is true then the - is called. - - - - - - Immediate flush means that the underlying writer or output stream - will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logs events are not actually written to persistent media if and - when the application crashes. - - - The default value is true. - - - - - Gets or sets a value that indicates whether the appender will - flush at the end of each write. - - - The default behavior is to flush at the end of each - write. If the option is set tofalse, then the underlying - stream can defer writing to physical medium to a later time. - - - Avoiding the flush operation at the end of each append results - in a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Writes events to the system event log. - - - - The EventID of the event log entry can be - set using the EventLogEventID property () - on the . - - - There is a limit of 32K characters for an event log message - - - When configuring the EventLogAppender a mapping can be - specified to map a logging level to an event log entry type. For example: - - - <mapping> - <level value="ERROR" /> - <eventLogEntryType value="Error" /> - </mapping> - <mapping> - <level value="DEBUG" /> - <eventLogEntryType value="Information" /> - </mapping> - - - The Level is the standard log4net logging level and eventLogEntryType can be any value - from the enum, i.e.: - - Erroran error event - Warninga warning event - Informationan informational event - - - - Aspi Havewala - Douglas de la Torre - Nicko Cadell - Gert Driesen - Thomas Voss - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initializes a new instance of the class - with the specified . - - The to use with this appender. - - - Obsolete constructor. - - - - - - Add a mapping of level to - done by the config file - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the event log entry type for a level. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Create an event log source - - - Uses different API calls under NET_2_0 - - - - - This method is called by the - method. - - the event to log - - Writes the event to the system event log using the - . - - If the event has an EventID property (see ) - set then this integer will be used as the event log event id. - - - There is a limit of 32K characters for an event log message - - - - - - Get the equivalent for a - - the Level to convert to an EventLogEntryType - The equivalent for a - - Because there are fewer applicable - values to use in logging levels than there are in the - this is a one way mapping. There is - a loss of information during the conversion. - - - - - The log name is the section in the event logs where the messages - are stored. - - - - - Name of the application to use when logging. This appears in the - application column of the event log named by . - - - - - The name of the machine which holds the event log. This is - currently only allowed to be '.' i.e. the current machine. - - - - - Mapping from level object to EventLogEntryType - - - - - The security context to use for privileged calls - - - - - The name of the log where messages will be stored. - - - The string name of the log where messages will be stored. - - - This is the name of the log as it appears in the Event Viewer - tree. The default value is to log into the Application - log, this is where most applications write their events. However - if you need a separate log for your application (or applications) - then you should set the appropriately. - This should not be used to distinguish your event log messages - from those of other applications, the - property should be used to distinguish events. This property should be - used to group together events into a single log. - - - - - - Property used to set the Application name. This appears in the - event logs when logging. - - - The string used to distinguish events from different sources. - - - Sets the event log source property. - - - - - This property is used to return the name of the computer to use - when accessing the event logs. Currently, this is the current - computer, denoted by a dot "." - - - The string name of the machine holding the event log that - will be logged into. - - - This property cannot be changed. It is currently set to '.' - i.e. the local machine. This may be changed in future. - - - - - Gets or sets the used to write to the EventLog. - - - The used to write to the EventLog. - - - - The system security context used to write to the EventLog. - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and its event log entry type. - - - - - - The for this entry - - - - Required property. - The for this entry - - - - - - Appends logging events to a file. - - - - Logging events are sent to the file specified by - the property. - - - The file can be opened in either append or overwrite mode - by specifying the property. - If the file path is relative it is taken as relative from - the application base directory. The file encoding can be - specified by setting the property. - - - The layout's and - values will be written each time the file is opened and closed - respectively. If the property is - then the file may contain multiple copies of the header and footer. - - - This appender will first try to open the file for writing when - is called. This will typically be during configuration. - If the file cannot be opened for writing the appender will attempt - to open the file again each time a message is logged to the appender. - If the file cannot be opened for writing when a message is logged then - the message will be discarded by this appender. - - - The supports pluggable file locking models via - the property. - The default behavior, implemented by - is to obtain an exclusive write lock on the file until this appender is closed. - The alternative model, , only holds a - write lock while the appender is writing a logging event. - - - Nicko Cadell - Gert Driesen - Rodrigo B. de Oliveira - Douglas de la Torre - Niall Daley - - - - Sends logging events to a . - - - - An Appender that writes to a . - - - This appender may be used stand alone if initialized with an appropriate - writer, however it is typically used as a base class for an appender that - can open a to write to. - - - Nicko Cadell - Gert Driesen - Douglas de la Torre - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initializes a new instance of the class and - sets the output destination to a new initialized - with the specified . - - The layout to use with this appender. - The to output to. - - - Obsolete constructor. - - - - - - Initializes a new instance of the class and sets - the output destination to the specified . - - The layout to use with this appender - The to output to - - The must have been previously opened. - - - - Obsolete constructor. - - - - - - This method determines if there is a sense in attempting to append. - - - - This method checked if an output target has been set and if a - layout has been set. - - - false if any of the preconditions fail. - - - - This method is called by the - method. - - The event to log. - - - Writes a log statement to the output stream if the output stream exists - and is writable. - - - The format of the output will depend on the appender's layout. - - - - - - This method is called by the - method. - - The array of events to log. - - - This method writes all the bulk logged events to the output writer - before flushing the stream. - - - - - - Close this appender instance. The underlying stream or writer is also closed. - - - Closed appenders cannot be reused. - - - - - Writes the footer and closes the underlying . - - - - Writes the footer and closes the underlying . - - - - - - Closes the underlying . - - - - Closes the underlying . - - - - - - Clears internal references to the underlying - and other variables. - - - - Subclasses can override this method for an alternate closing behavior. - - - - - - Writes a footer as produced by the embedded layout's property. - - - - Writes a footer as produced by the embedded layout's property. - - - - - - Writes a header produced by the embedded layout's property. - - - - Writes a header produced by the embedded layout's property. - - - - - - Called to allow a subclass to lazily initialize the writer - - - - This method is called when an event is logged and the or - have not been set. This allows a subclass to - attempt to initialize the writer multiple times. - - - - - - This is the where logging events - will be written to. - - - - - Immediate flush means that the underlying - or output stream will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logging events are not actually persisted if and when the application - crashes. - - - The default value is true. - - - - - - Gets or set whether the appender will flush at the end - of each append operation. - - - - The default behavior is to flush at the end of each - append operation. - - - If this option is set to false, then the underlying - stream can defer persisting the logging event to a later - time. - - - - Avoiding the flush operation at the end of each append results in - a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - Sets the where the log output will go. - - - - The specified must be open and writable. - - - The will be closed when the appender - instance is closed. - - - Note: Logging to an unopened will fail. - - - - - - Gets or set the and the underlying - , if any, for this appender. - - - The for this appender. - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Gets or sets the where logging events - will be written to. - - - The where logging events are written. - - - - This is the where logging events - will be written to. - - - - - - Default constructor - - - - Default constructor - - - - - - Construct a new appender using the layout, file and append mode. - - the layout to use with this appender - the full path to the file to write to - flag to indicate if the file should be appended to - - - Obsolete constructor. - - - - - - Construct a new appender using the layout and file specified. - The file will be appended to. - - the layout to use with this appender - the full path to the file to write to - - - Obsolete constructor. - - - - - - Activate the options on the file appender. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - This will cause the file to be opened. - - - - - - Closes any previously opened file and calls the parent's . - - - - Resets the filename and the file stream. - - - - - - Called to initialize the file writer - - - - Will be called for each logged message until the file is - successfully opened. - - - - - - This method is called by the - method. - - The event to log. - - - Writes a log statement to the output stream if the output stream exists - and is writable. - - - The format of the output will depend on the appender's layout. - - - - - - This method is called by the - method. - - The array of events to log. - - - Acquires the output file locks once before writing all the events to - the stream. - - - - - - Writes a footer as produced by the embedded layout's property. - - - - Writes a footer as produced by the embedded layout's property. - - - - - - Writes a header produced by the embedded layout's property. - - - - Writes a header produced by the embedded layout's property. - - - - - - Closes the underlying . - - - - Closes the underlying . - - - - - - Closes the previously opened file. - - - - Writes the to the file and then - closes the file. - - - - - - Sets and opens the file where the log output will go. The specified file must be writable. - - The path to the log file. Must be a fully qualified path. - If true will append to fileName. Otherwise will truncate fileName - - - Calls but guarantees not to throw an exception. - Errors are passed to the . - - - - - - Sets and opens the file where the log output will go. The specified file must be writable. - - The path to the log file. Must be a fully qualified path. - If true will append to fileName. Otherwise will truncate fileName - - - If there was already an opened file, then the previous file - is closed first. - - - This method will ensure that the directory structure - for the specified exists. - - - - - - Sets the quiet writer used for file output - - the file stream that has been opened for writing - - - This implementation of creates a - over the and passes it to the - method. - - - This method can be overridden by sub classes that want to wrap the - in some way, for example to encrypt the output - data using a System.Security.Cryptography.CryptoStream. - - - - - - Sets the quiet writer being used. - - the writer over the file stream that has been opened for writing - - - This method can be overridden by sub classes that want to - wrap the in some way. - - - - - - Convert a path into a fully qualified path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - - - - Flag to indicate if we should append to the file - or overwrite the file. The default is to append. - - - - - The name of the log file. - - - - - The encoding to use for the file stream. - - - - - The security context to use for privileged calls - - - - - The stream to log to. Has added locking semantics - - - - - The locking model to use - - - - - Gets or sets the path to the file that logging will be written to. - - - The path to the file that logging will be written to. - - - - If the path is relative it is taken as relative from - the application base directory. - - - - - - Gets or sets a flag that indicates whether the file should be - appended to or overwritten. - - - Indicates whether the file should be appended to or overwritten. - - - - If the value is set to false then the file will be overwritten, if - it is set to true then the file will be appended to. - - The default value is true. - - - - - Gets or sets used to write to the file. - - - The used to write to the file. - - - - The default encoding set is - which is the encoding for the system's current ANSI code page. - - - - - - Gets or sets the used to write to the file. - - - The used to write to the file. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - Gets or sets the used to handle locking of the file. - - - The used to lock the file. - - - - Gets or sets the used to handle locking of the file. - - - There are two built in locking models, and . - The former locks the file from the start of logging to the end and the - later lock only for the minimal amount of time when logging each message. - - - The default locking model is the . - - - - - - Write only that uses the - to manage access to an underlying resource. - - - - - True asynchronous writes are not supported, the implementation forces a synchronous write. - - - - - Exception base type for log4net. - - - - This type extends . It - does not add any new functionality but does differentiate the - type of exception being thrown. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - A message to include with the exception. - - - Initializes a new instance of the class with - the specified message. - - - - - - Constructor - - A message to include with the exception. - A nested exception to include. - - - Initializes a new instance of the class - with the specified message and inner exception. - - - - - - Serialization constructor - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Locking model base class - - - - Base class for the locking models available to the derived loggers. - - - - - - Open the output file - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Acquire the lock on the file in preparation for writing to it. - Return a stream pointing to the file. - must be called to release the lock on the output file. - - - - - - Release the lock on the file - - - - Release the lock on the file. No further writes will be made to the - stream until is called again. - - - - - - Gets or sets the for this LockingModel - - - The for this LockingModel - - - - The file appender this locking model is attached to and working on - behalf of. - - - The file appender is used to locate the security context and the error handler to use. - - - The value of this property will be set before is - called. - - - - - - Hold an exclusive lock on the output file - - - - Open the file once for writing and hold it open until is called. - Maintains an exclusive lock on the file during this time. - - - - - - Open the file specified and prepare for logging. - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Does nothing. The lock is already taken - - - - - - Release the lock on the file - - - - Does nothing. The lock will be released when the file is closed. - - - - - - Acquires the file lock for each write - - - - Opens the file once for each / cycle, - thus holding the lock for the minimal amount of time. This method of locking - is considerably slower than but allows - other processes to move/delete the log file whilst logging continues. - - - - - - Prepares to open the file when the first message is logged. - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Acquire the lock on the file in preparation for writing to it. - Return a stream pointing to the file. - must be called to release the lock on the output file. - - - - - - Release the lock on the file - - - - Release the lock on the file. No further writes will be made to the - stream until is called again. - - - - - - This appender forwards logging events to attached appenders. - - - - The forwarding appender can be used to specify different thresholds - and filters for the same appender at different locations within the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Forward the logging event to the attached appenders - - The event to log. - - - Delivers the logging event to all the attached appenders. - - - - - - Forward the logging events to the attached appenders - - The array of events to log. - - - Delivers the logging events to all the attached appenders. - - - - - - Adds an to the list of appenders of this - instance. - - The to add to this appender. - - - If the specified is already in the list of - appenders, then it won't be added again. - - - - - - Looks for the appender with the specified name. - - The name of the appender to lookup. - - The appender with the specified name, or null. - - - - Get the named appender attached to this appender. - - - - - - Removes all previously added appenders from this appender. - - - - This is useful when re-reading configuration information. - - - - - - Removes the specified appender from the list of appenders. - - The appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Implementation of the interface - - - - - Gets the appenders contained in this appender as an - . - - - If no appenders can be found, then an - is returned. - - - A collection of the appenders in this appender. - - - - - Logs events to a local syslog service. - - - - This appender uses the POSIX libc library functions openlog, syslog, and closelog. - If these functions are not available on the local system then this appender will not work! - - - The functions openlog, syslog, and closelog are specified in SUSv2 and - POSIX 1003.1-2001 standards. These are used to log messages to the local syslog service. - - - This appender talks to a local syslog service. If you need to log to a remote syslog - daemon and you cannot configure your local syslog service to do this you may be - able to use the to log via UDP. - - - Syslog messages must have a facility and and a severity. The severity - is derived from the Level of the logging event. - The facility must be chosen from the set of defined syslog - values. The facilities list is predefined - and cannot be extended. - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - Rob Lyon - Nicko Cadell - - - - Initializes a new instance of the class. - - - This instance of the class is set up to write - to a local syslog service. - - - - - Add a mapping of level to severity - - The mapping to add - - - Adds a to this appender. - - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to a remote syslog daemon. - - - The format of the output will depend on the appender's layout. - - - - - - Close the syslog when the appender is closed - - - - Close the syslog when the appender is closed - - - - - - Translates a log4net level to a syslog severity. - - A log4net level. - A syslog severity. - - - Translates a log4net level to a syslog severity. - - - - - - Generate a syslog priority. - - The syslog facility. - The syslog severity. - A syslog priority. - - - - The facility. The default facility is . - - - - - The message identity - - - - - Marshaled handle to the identity string. We have to hold on to the - string as the openlog and syslog APIs just hold the - pointer to the ident and dereference it for each log message. - - - - - Mapping from level object to syslog severity - - - - - Open connection to system logger. - - - - - Generate a log message. - - - - The libc syslog method takes a format string and a variable argument list similar - to the classic printf function. As this type of vararg list is not supported - by C# we need to specify the arguments explicitly. Here we have specified the - format string with a single message argument. The caller must set the format - string to "%s". - - - - - - Close descriptor used to write to system logger. - - - - - Message identity - - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - - - - Syslog facility - - - Set to one of the values. The list of - facilities is predefined and cannot be extended. The default value - is . - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - syslog severities - - - - The log4net Level maps to a syslog severity using the - method and the - class. The severity is set on . - - - - - - system is unusable - - - - - action must be taken immediately - - - - - critical conditions - - - - - error conditions - - - - - warning conditions - - - - - normal but significant condition - - - - - informational - - - - - debug-level messages - - - - - syslog facilities - - - - The syslog facility defines which subsystem the logging comes from. - This is set on the property. - - - - - - kernel messages - - - - - random user-level messages - - - - - mail system - - - - - system daemons - - - - - security/authorization messages - - - - - messages generated internally by syslogd - - - - - line printer subsystem - - - - - network news subsystem - - - - - UUCP subsystem - - - - - clock (cron/at) daemon - - - - - security/authorization messages (private) - - - - - ftp daemon - - - - - NTP subsystem - - - - - log audit - - - - - log alert - - - - - clock daemon - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - - - The mapped syslog severity for the specified level - - - - Required property. - The mapped syslog severity for the specified level - - - - - - Stores logging events in an array. - - - - The memory appender stores all the logging events - that are appended in an in-memory array. - - - Use the method to get - the current list of events that have been appended. - - - Use the method to clear the - current list of events. - - - Julian Biddle - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Gets the events that have been logged. - - The events that have been logged - - - Gets the events that have been logged. - - - - - - This method is called by the method. - - the event to log - - Stores the in the events list. - - - - - Clear the list of events - - - Clear the list of events - - - - - The list of events that have been appended. - - - - - Value indicating which fields in the event should be fixed - - - By default all fields are fixed - - - - - Gets or sets a value indicating whether only part of the logging event - data should be fixed. - - - true if the appender should only fix part of the logging event - data, otherwise false. The default is false. - - - - Setting this property to true will cause only part of the event - data to be fixed and stored in the appender, hereby improving performance. - - - See for more information. - - - - - - Gets or sets the fields that will be fixed in the event - - - - The logging event needs to have certain thread specific values - captured before it can be buffered. See - for details. - - - - - - Logs entries by sending network messages using the - native function. - - - - You can send messages only to names that are active - on the network. If you send the message to a user name, - that user must be logged on and running the Messenger - service to receive the message. - - - The receiver will get a top most window displaying the - messages one at a time, therefore this appender should - not be used to deliver a high volume of messages. - - - The following table lists some possible uses for this appender : - - - - - Action - Property Value(s) - - - Send a message to a user account on the local machine - - - = <name of the local machine> - - - = <user name> - - - - - Send a message to a user account on a remote machine - - - = <name of the remote machine> - - - = <user name> - - - - - Send a message to a domain user account - - - = <name of a domain controller | uninitialized> - - - = <user name> - - - - - Send a message to all the names in a workgroup or domain - - - = <workgroup name | domain name>* - - - - - Send a message from the local machine to a remote machine - - - = <name of the local machine | uninitialized> - - - = <name of the remote machine> - - - - - - - Note : security restrictions apply for sending - network messages, see - for more information. - - - - - An example configuration section to log information - using this appender from the local machine, named - LOCAL_PC, to machine OPERATOR_PC : - - - - - - - - - - Nicko Cadell - Gert Driesen - - - - The DNS or NetBIOS name of the server on which the function is to execute. - - - - - The sender of the network message. - - - - - The message alias to which the message should be sent. - - - - - The security context to use for privileged calls - - - - - Initializes the appender. - - - The default constructor initializes all fields to their default values. - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The appender will be ignored if no was specified. - - - The required property was not specified. - - - - This method is called by the method. - - The event to log. - - - Sends the event using a network message. - - - - - - Sends a buffer of information to a registered message alias. - - The DNS or NetBIOS name of the server on which the function is to execute. - The message alias to which the message buffer should be sent - The originator of the message. - The message text. - The length, in bytes, of the message text. - - - The following restrictions apply for sending network messages: - - - - - Platform - Requirements - - - Windows NT - - - No special group membership is required to send a network message. - - - Admin, Accounts, Print, or Server Operator group membership is required to - successfully send a network message on a remote server. - - - - - Windows 2000 or later - - - If you send a message on a domain controller that is running Active Directory, - access is allowed or denied based on the access control list (ACL) for the securable - object. The default ACL permits only Domain Admins and Account Operators to send a network message. - - - On a member server or workstation, only Administrators and Server Operators can send a network message. - - - - - - - For more information see Security Requirements for the Network Management Functions. - - - - - If the function succeeds, the return value is zero. - - - - - - Gets or sets the sender of the message. - - - The sender of the message. - - - If this property is not specified, the message is sent from the local computer. - - - - - Gets or sets the message alias to which the message should be sent. - - - The recipient of the message. - - - This property should always be specified in order to send a message. - - - - - Gets or sets the DNS or NetBIOS name of the remote server on which the function is to execute. - - - DNS or NetBIOS name of the remote server on which the function is to execute. - - - - For Windows NT 4.0 and earlier, the string should begin with \\. - - - If this property is not specified, the local computer is used. - - - - - - Gets or sets the used to call the NetSend method. - - - The used to call the NetSend method. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appends log events to the OutputDebugString system. - - - - OutputDebugStringAppender appends log events to the - OutputDebugString system. - - - The string is passed to the native OutputDebugString - function. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Write the logging event to the output debug string API - - the event to log - - - Write the logging event to the output debug string API - - - - - - Stub for OutputDebugString native method - - the string to output - - - Stub for OutputDebugString native method - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Logs events to a remote syslog daemon. - - - - The BSD syslog protocol is used to remotely log to - a syslog daemon. The syslogd listens for for messages - on UDP port 514. - - - The syslog UDP protocol is not authenticated. Most syslog daemons - do not accept remote log messages because of the security implications. - You may be able to use the LocalSyslogAppender to talk to a local - syslog service. - - - There is an RFC 3164 that claims to document the BSD Syslog Protocol. - This RFC can be seen here: http://www.faqs.org/rfcs/rfc3164.html. - This appender generates what the RFC calls an "Original Device Message", - i.e. does not include the TIMESTAMP or HOSTNAME fields. By observation - this format of message will be accepted by all current syslog daemon - implementations. The daemon will attach the current time and the source - hostname or IP address to any messages received. - - - Syslog messages must have a facility and and a severity. The severity - is derived from the Level of the logging event. - The facility must be chosen from the set of defined syslog - values. The facilities list is predefined - and cannot be extended. - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - Rob Lyon - Nicko Cadell - - - - Sends logging events as connectionless UDP datagrams to a remote host or a - multicast group using an . - - - - UDP guarantees neither that messages arrive, nor that they arrive in the correct order. - - - To view the logging results, a custom application can be developed that listens for logging - events. - - - When decoding events send via this appender remember to use the same encoding - to decode the events as was used to send the events. See the - property to specify the encoding to use. - - - - This example shows how to log receive logging events that are sent - on IP address 244.0.0.1 and port 8080 to the console. The event is - encoded in the packet as a unicode string and it is decoded as such. - - IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Any, 0); - UdpClient udpClient; - byte[] buffer; - string loggingEvent; - - try - { - udpClient = new UdpClient(8080); - - while(true) - { - buffer = udpClient.Receive(ref remoteEndPoint); - loggingEvent = System.Text.Encoding.Unicode.GetString(buffer); - Console.WriteLine(loggingEvent); - } - } - catch(Exception e) - { - Console.WriteLine(e.ToString()); - } - - - Dim remoteEndPoint as IPEndPoint - Dim udpClient as UdpClient - Dim buffer as Byte() - Dim loggingEvent as String - - Try - remoteEndPoint = new IPEndPoint(IPAddress.Any, 0) - udpClient = new UdpClient(8080) - - While True - buffer = udpClient.Receive(ByRef remoteEndPoint) - loggingEvent = System.Text.Encoding.Unicode.GetString(buffer) - Console.WriteLine(loggingEvent) - Wend - Catch e As Exception - Console.WriteLine(e.ToString()) - End Try - - - An example configuration section to log information using this appender to the - IP 224.0.0.1 on port 8080: - - - - - - - - - - Gert Driesen - Nicko Cadell - - - - Initializes a new instance of the class. - - - The default constructor initializes all fields to their default values. - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The appender will be ignored if no was specified or - an invalid remote or local TCP port number was specified. - - - The required property was not specified. - The TCP port number assigned to or is less than or greater than . - - - - This method is called by the method. - - The event to log. - - - Sends the event using an UDP datagram. - - - Exceptions are passed to the . - - - - - - Closes the UDP connection and releases all resources associated with - this instance. - - - - Disables the underlying and releases all managed - and unmanaged resources associated with the . - - - - - - Initializes the underlying connection. - - - - The underlying is initialized and binds to the - port number from which you intend to communicate. - - - Exceptions are passed to the . - - - - - - The IP address of the remote host or multicast group to which - the logging event will be sent. - - - - - The TCP port number of the remote host or multicast group to - which the logging event will be sent. - - - - - The cached remote endpoint to which the logging events will be sent. - - - - - The TCP port number from which the will communicate. - - - - - The instance that will be used for sending the - logging events. - - - - - The encoding to use for the packet. - - - - - Gets or sets the IP address of the remote host or multicast group to which - the underlying should sent the logging event. - - - The IP address of the remote host or multicast group to which the logging event - will be sent. - - - - Multicast addresses are identified by IP class D addresses (in the range 224.0.0.0 to - 239.255.255.255). Multicast packets can pass across different networks through routers, so - it is possible to use multicasts in an Internet scenario as long as your network provider - supports multicasting. - - - Hosts that want to receive particular multicast messages must register their interest by joining - the multicast group. Multicast messages are not sent to networks where no host has joined - the multicast group. Class D IP addresses are used for multicast groups, to differentiate - them from normal host addresses, allowing nodes to easily detect if a message is of interest. - - - Static multicast addresses that are needed globally are assigned by IANA. A few examples are listed in the table below: - - - - - IP Address - Description - - - 224.0.0.1 - - - Sends a message to all system on the subnet. - - - - - 224.0.0.2 - - - Sends a message to all routers on the subnet. - - - - - 224.0.0.12 - - - The DHCP server answers messages on the IP address 224.0.0.12, but only on a subnet. - - - - - - - A complete list of actually reserved multicast addresses and their owners in the ranges - defined by RFC 3171 can be found at the IANA web site. - - - The address range 239.0.0.0 to 239.255.255.255 is reserved for administrative scope-relative - addresses. These addresses can be reused with other local groups. Routers are typically - configured with filters to prevent multicast traffic in this range from flowing outside - of the local network. - - - - - - Gets or sets the TCP port number of the remote host or multicast group to which - the underlying should sent the logging event. - - - An integer value in the range to - indicating the TCP port number of the remote host or multicast group to which the logging event - will be sent. - - - The underlying will send messages to this TCP port number - on the remote host or multicast group. - - The value specified is less than or greater than . - - - - Gets or sets the TCP port number from which the underlying will communicate. - - - An integer value in the range to - indicating the TCP port number from which the underlying will communicate. - - - - The underlying will bind to this port for sending messages. - - - Setting the value to 0 (the default) will cause the udp client not to bind to - a local port. - - - The value specified is less than or greater than . - - - - Gets or sets used to write the packets. - - - The used to write the packets. - - - - The used to write the packets. - - - - - - Gets or sets the underlying . - - - The underlying . - - - creates a to send logging events - over a network. Classes deriving from can use this - property to get or set this . Use the underlying - returned from if you require access beyond that which - provides. - - - - - Gets or sets the cached remote endpoint to which the logging events should be sent. - - - The cached remote endpoint to which the logging events will be sent. - - - The method will initialize the remote endpoint - with the values of the and - properties. - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Syslog port 514 - - - - - Initializes a new instance of the class. - - - This instance of the class is set up to write - to a remote syslog daemon. - - - - - Add a mapping of level to severity - - The mapping to add - - - Add a mapping to this appender. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to a remote syslog daemon. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to syslog severity mappings set on this appender. - - - - - - Translates a log4net level to a syslog severity. - - A log4net level. - A syslog severity. - - - Translates a log4net level to a syslog severity. - - - - - - Generate a syslog priority. - - The syslog facility. - The syslog severity. - A syslog priority. - - - Generate a syslog priority. - - - - - - The facility. The default facility is . - - - - - The message identity - - - - - Mapping from level object to syslog severity - - - - - Message identity - - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - - - - Syslog facility - - - Set to one of the values. The list of - facilities is predefined and cannot be extended. The default value - is . - - - - - syslog severities - - - - The syslog severities. - - - - - - system is unusable - - - - - action must be taken immediately - - - - - critical conditions - - - - - error conditions - - - - - warning conditions - - - - - normal but significant condition - - - - - informational - - - - - debug-level messages - - - - - syslog facilities - - - - The syslog facilities - - - - - - kernel messages - - - - - random user-level messages - - - - - mail system - - - - - system daemons - - - - - security/authorization messages - - - - - messages generated internally by syslogd - - - - - line printer subsystem - - - - - network news subsystem - - - - - UUCP subsystem - - - - - clock (cron/at) daemon - - - - - security/authorization messages (private) - - - - - ftp daemon - - - - - NTP subsystem - - - - - log audit - - - - - log alert - - - - - clock daemon - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - - - The mapped syslog severity for the specified level - - - - Required property. - The mapped syslog severity for the specified level - - - - - - Delivers logging events to a remote logging sink. - - - - This Appender is designed to deliver events to a remote sink. - That is any object that implements the - interface. It delivers the events using .NET remoting. The - object to deliver events to is specified by setting the - appenders property. - - The RemotingAppender buffers events before sending them. This allows it to - make more efficient use of the remoting infrastructure. - - Once the buffer is full the events are still not sent immediately. - They are scheduled to be sent using a pool thread. The effect is that - the send occurs asynchronously. This is very important for a - number of non obvious reasons. The remoting infrastructure will - flow thread local variables (stored in the ), - if they are marked as , across the - remoting boundary. If the server is not contactable then - the remoting infrastructure will clear the - objects from the . To prevent a logging failure from - having side effects on the calling application the remoting call must be made - from a separate thread to the one used by the application. A - thread is used for this. If no thread is available then - the events will block in the thread pool manager until a thread is available. - - Because the events are sent asynchronously using pool threads it is possible to close - this appender before all the queued events have been sent. - When closing the appender attempts to wait until all the queued events have been sent, but - this will timeout after 30 seconds regardless. - - If this appender is being closed because the - event has fired it may not be possible to send all the queued events. During process - exit the runtime limits the time that a - event handler is allowed to run for. If the runtime terminates the threads before - the queued events have been sent then they will be lost. To ensure that all events - are sent the appender must be closed before the application exits. See - for details on how to shutdown - log4net programmatically. - - - Nicko Cadell - Gert Driesen - Daniel Cazzulino - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Send the contents of the buffer to the remote sink. - - - The events are not sent immediately. They are scheduled to be sent - using a pool thread. The effect is that the send occurs asynchronously. - This is very important for a number of non obvious reasons. The remoting - infrastructure will flow thread local variables (stored in the ), - if they are marked as , across the - remoting boundary. If the server is not contactable then - the remoting infrastructure will clear the - objects from the . To prevent a logging failure from - having side effects on the calling application the remoting call must be made - from a separate thread to the one used by the application. A - thread is used for this. If no thread is available then - the events will block in the thread pool manager until a thread is available. - - The events to send. - - - - Override base class close. - - - - This method waits while there are queued work items. The events are - sent asynchronously using work items. These items - will be sent once a thread pool thread is available to send them, therefore - it is possible to close the appender before all the queued events have been - sent. - - This method attempts to wait until all the queued events have been sent, but this - method will timeout after 30 seconds regardless. - - If the appender is being closed because the - event has fired it may not be possible to send all the queued events. During process - exit the runtime limits the time that a - event handler is allowed to run for. - - - - - A work item is being queued into the thread pool - - - - - A work item from the thread pool has completed - - - - - Send the contents of the buffer to the remote sink. - - - This method is designed to be used with the . - This method expects to be passed an array of - objects in the state param. - - the logging events to send - - - - The URL of the remote sink. - - - - - The local proxy (.NET remoting) for the remote logging sink. - - - - - The number of queued callbacks currently waiting or executing - - - - - Event used to signal when there are no queued work items - - - This event is set when there are no queued work items. In this - state it is safe to close the appender. - - - - - Gets or sets the URL of the well-known object that will accept - the logging events. - - - The well-known URL of the remote sink. - - - - The URL of the remoting sink that will accept logging events. - The sink must implement the - interface. - - - - - - Interface used to deliver objects to a remote sink. - - - This interface must be implemented by a remoting sink - if the is to be used - to deliver logging events to the sink. - - - - - Delivers logging events to the remote sink - - Array of events to log. - - - Delivers logging events to the remote sink - - - - - - Appender that rolls log files based on size or date or both. - - - - RollingFileAppender can roll log files based on size or date or both - depending on the setting of the property. - When set to the log file will be rolled - once its size exceeds the . - When set to the log file will be rolled - once the date boundary specified in the property - is crossed. - When set to the log file will be - rolled once the date boundary specified in the property - is crossed, but within a date boundary the file will also be rolled - once its size exceeds the . - When set to the log file will be rolled when - the appender is configured. This effectively means that the log file can be - rolled once per program execution. - - - A of few additional optional features have been added: - - Attach date pattern for current log file - Backup number increments for newer files - Infinite number of backups by file size - - - - - - For large or infinite numbers of backup files a - greater than zero is highly recommended, otherwise all the backup files need - to be renamed each time a new backup is created. - - - When Date/Time based rolling is used setting - to will reduce the number of file renamings to few or none. - - - - - - Changing or without clearing - the log file directory of backup files will cause unexpected and unwanted side effects. - - - - - If Date/Time based rolling is enabled this appender will attempt to roll existing files - in the directory without a Date/Time tag based on the last write date of the base log file. - The appender only rolls the log file when a message is logged. If Date/Time based rolling - is enabled then the appender will not roll the log file at the Date/Time boundary but - at the point when the next message is logged after the boundary has been crossed. - - - - The extends the and - has the same behavior when opening the log file. - The appender will first try to open the file for writing when - is called. This will typically be during configuration. - If the file cannot be opened for writing the appender will attempt - to open the file again each time a message is logged to the appender. - If the file cannot be opened for writing when a message is logged then - the message will be discarded by this appender. - - - When rolling a backup file necessitates deleting an older backup file the - file to be deleted is moved to a temporary name before being deleted. - - - - - A maximum number of backup files when rolling on date/time boundaries is not supported. - - - - Nicko Cadell - Gert Driesen - Aspi Havewala - Douglas de la Torre - Edward Smit - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Sets the quiet writer being used. - - - This method can be overridden by sub classes. - - the writer to set - - - - Write out a logging event. - - the event to write to file. - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Write out an array of logging events. - - the events to write to file. - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Performs any required rolling before outputting the next event - - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Creates and opens the file for logging. If - is false then the fully qualified name is determined and used. - - the name of the file to open - true to append to existing file - - This method will ensure that the directory structure - for the specified exists. - - - - - Get the current output file name - - the base file name - the output file name - - The output file name is based on the base fileName specified. - If is set then the output - file name is the same as the base file passed in. Otherwise - the output file depends on the date pattern, on the count - direction or both. - - - - - Determines curSizeRollBackups (only within the current roll point) - - - - - Generates a wildcard pattern that can be used to find all files - that are similar to the base file name. - - - - - - - Builds a list of filenames for all files matching the base filename plus a file - pattern. - - - - - - - Initiates a roll over if needed for crossing a date boundary since the last run. - - - - - Initializes based on existing conditions at time of . - - - - Initializes based on existing conditions at time of . - The following is done - - determine curSizeRollBackups (only within the current roll point) - initiates a roll over if needed for crossing a date boundary since the last run. - - - - - - - Does the work of bumping the 'current' file counter higher - to the highest count when an incremental file name is seen. - The highest count is either the first file (when count direction - is greater than 0) or the last file (when count direction less than 0). - In either case, we want to know the highest count that is present. - - - - - - - Takes a list of files and a base file name, and looks for - 'incremented' versions of the base file. Bumps the max - count up to the highest count seen. - - - - - - - Calculates the RollPoint for the datePattern supplied. - - the date pattern to calculate the check period for - The RollPoint that is most accurate for the date pattern supplied - - Essentially the date pattern is examined to determine what the - most suitable roll point is. The roll point chosen is the roll point - with the smallest period that can be detected using the date pattern - supplied. i.e. if the date pattern only outputs the year, month, day - and hour then the smallest roll point that can be detected would be - and hourly roll point as minutes could not be detected. - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Sets initial conditions including date/time roll over information, first check, - scheduledFilename, and calls to initialize - the current number of backups. - - - - - - Rollover the file(s) to date/time tagged file(s). - - set to true if the file to be rolled is currently open - - - Rollover the file(s) to date/time tagged file(s). - Resets curSizeRollBackups. - If fileIsOpen is set then the new file is opened (through SafeOpenFile). - - - - - - Renames file to file . - - Name of existing file to roll. - New name for file. - - - Renames file to file . It - also checks for existence of target file and deletes if it does. - - - - - - Test if a file exists at a specified path - - the path to the file - true if the file exists - - - Test if a file exists at a specified path - - - - - - Deletes the specified file if it exists. - - The file to delete. - - - Delete a file if is exists. - The file is first moved to a new filename then deleted. - This allows the file to be removed even when it cannot - be deleted, but it still can be moved. - - - - - - Implements file roll base on file size. - - - - If the maximum number of size based backups is reached - (curSizeRollBackups == maxSizeRollBackups) then the oldest - file is deleted -- its index determined by the sign of countDirection. - If countDirection < 0, then files - {File.1, ..., File.curSizeRollBackups -1} - are renamed to {File.2, ..., - File.curSizeRollBackups}. Moreover, File is - renamed File.1 and closed. - - - A new file is created to receive further log output. - - - If maxSizeRollBackups is equal to zero, then the - File is truncated with no backup files created. - - - If maxSizeRollBackups < 0, then File is - renamed if needed and no files are deleted. - - - - - - Implements file roll. - - the base name to rename - - - If the maximum number of size based backups is reached - (curSizeRollBackups == maxSizeRollBackups) then the oldest - file is deleted -- its index determined by the sign of countDirection. - If countDirection < 0, then files - {File.1, ..., File.curSizeRollBackups -1} - are renamed to {File.2, ..., - File.curSizeRollBackups}. - - - If maxSizeRollBackups is equal to zero, then the - File is truncated with no backup files created. - - - If maxSizeRollBackups < 0, then File is - renamed if needed and no files are deleted. - - - This is called by to rename the files. - - - - - - Get the start time of the next window for the current rollpoint - - the current date - the type of roll point we are working with - the start time for the next roll point an interval after the currentDateTime date - - - Returns the date of the next roll point after the currentDateTime date passed to the method. - - - The basic strategy is to subtract the time parts that are less significant - than the rollpoint from the current time. This should roll the time back to - the start of the time window for the current rollpoint. Then we add 1 window - worth of time and get the start time of the next window for the rollpoint. - - - - - - This object supplies the current date/time. Allows test code to plug in - a method to control this class when testing date/time based rolling. - - - - - The date pattern. By default, the pattern is set to ".yyyy-MM-dd" - meaning daily rollover. - - - - - The actual formatted filename that is currently being written to - or will be the file transferred to on roll over - (based on staticLogFileName). - - - - - The timestamp when we shall next recompute the filename. - - - - - Holds date of last roll over - - - - - The type of rolling done - - - - - The default maximum file size is 10MB - - - - - There is zero backup files by default - - - - - How many sized based backups have been made so far - - - - - The rolling file count direction. - - - - - The rolling mode used in this appender. - - - - - Cache flag set if we are rolling by date. - - - - - Cache flag set if we are rolling by size. - - - - - Value indicating whether to always log to the same file. - - - - - FileName provided in configuration. Used for rolling properly - - - - - The 1st of January 1970 in UTC - - - - - Gets or sets the date pattern to be used for generating file names - when rolling over on date. - - - The date pattern to be used for generating file names when rolling - over on date. - - - - Takes a string in the same format as expected by - . - - - This property determines the rollover schedule when rolling over - on date. - - - - - - Gets or sets the maximum number of backup files that are kept before - the oldest is erased. - - - The maximum number of backup files that are kept before the oldest is - erased. - - - - If set to zero, then there will be no backup files and the log file - will be truncated when it reaches . - - - If a negative number is supplied then no deletions will be made. Note - that this could result in very slow performance as a large number of - files are rolled over unless is used. - - - The maximum applies to each time based group of files and - not the total. - - - - - - Gets or sets the maximum size that the output file is allowed to reach - before being rolled over to backup files. - - - The maximum size in bytes that the output file is allowed to reach before being - rolled over to backup files. - - - - This property is equivalent to except - that it is required for differentiating the setter taking a - argument from the setter taking a - argument. - - - The default maximum file size is 10MB (10*1024*1024). - - - - - - Gets or sets the maximum size that the output file is allowed to reach - before being rolled over to backup files. - - - The maximum size that the output file is allowed to reach before being - rolled over to backup files. - - - - This property allows you to specify the maximum size with the - suffixes "KB", "MB" or "GB" so that the size is interpreted being - expressed respectively in kilobytes, megabytes or gigabytes. - - - For example, the value "10KB" will be interpreted as 10240 bytes. - - - The default maximum file size is 10MB. - - - If you have the option to set the maximum file size programmatically - consider using the property instead as this - allows you to set the size in bytes as a . - - - - - - Gets or sets the rolling file count direction. - - - The rolling file count direction. - - - - Indicates if the current file is the lowest numbered file or the - highest numbered file. - - - By default newer files have lower numbers ( < 0), - i.e. log.1 is most recent, log.5 is the 5th backup, etc... - - - >= 0 does the opposite i.e. - log.1 is the first backup made, log.5 is the 5th backup made, etc. - For infinite backups use >= 0 to reduce - rollover costs. - - The default file count direction is -1. - - - - - Gets or sets the rolling style. - - The rolling style. - - - The default rolling style is . - - - When set to this appender's - property is set to false, otherwise - the appender would append to a single file rather than rolling - the file each time it is opened. - - - - - - Gets or sets a value indicating whether to always log to - the same file. - - - true if always should be logged to the same file, otherwise false. - - - - By default file.log is always the current file. Optionally - file.log.yyyy-mm-dd for current formatted datePattern can by the currently - logging file (or file.log.curSizeRollBackup or even - file.log.yyyy-mm-dd.curSizeRollBackup). - - - This will make time based rollovers with a large number of backups - much faster as the appender it won't have to rename all the backups! - - - - - - Style of rolling to use - - - - Style of rolling to use - - - - - - Roll files once per program execution - - - - Roll files once per program execution. - Well really once each time this appender is - configured. - - - Setting this option also sets AppendToFile to - false on the RollingFileAppender, otherwise - this appender would just be a normal file appender. - - - - - - Roll files based only on the size of the file - - - - - Roll files based only on the date - - - - - Roll files based on both the size and date of the file - - - - - The code assumes that the following 'time' constants are in a increasing sequence. - - - - The code assumes that the following 'time' constants are in a increasing sequence. - - - - - - Roll the log not based on the date - - - - - Roll the log for each minute - - - - - Roll the log for each hour - - - - - Roll the log twice a day (midday and midnight) - - - - - Roll the log each day (midnight) - - - - - Roll the log each week - - - - - Roll the log each month - - - - - This interface is used to supply Date/Time information to the . - - - This interface is used to supply Date/Time information to the . - Used primarily to allow test classes to plug themselves in so they can - supply test date/times. - - - - - Gets the current time. - - The current time. - - - Gets the current time. - - - - - - Default implementation of that returns the current time. - - - - - Gets the current time. - - The current time. - - - Gets the current time. - - - - - - Send an e-mail when a specific logging event occurs, typically on errors - or fatal errors. - - - - The number of logging events delivered in this e-mail depend on - the value of option. The - keeps only the last - logging events in its - cyclic buffer. This keeps memory requirements at a reasonable level while - still delivering useful application context. - - - Authentication and setting the server Port are only available on the MS .NET 1.1 runtime. - For these features to be enabled you need to ensure that you are using a version of - the log4net assembly that is built against the MS .NET 1.1 framework and that you are - running the your application on the MS .NET 1.1 runtime. On all other platforms only sending - unauthenticated messages to a server listening on port 25 (the default) is supported. - - - Authentication is supported by setting the property to - either or . - If using authentication then the - and properties must also be set. - - - To set the SMTP server port use the property. The default port is 25. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Default constructor - - - - - - Sends the contents of the cyclic buffer as an e-mail message. - - The logging events to send. - - - - Send the email message - - the body text to include in the mail - - - - Gets or sets a semicolon-delimited list of recipient e-mail addresses. - - - A semicolon-delimited list of e-mail addresses. - - - - A semicolon-delimited list of recipient e-mail addresses. - - - - - - Gets or sets the e-mail address of the sender. - - - The e-mail address of the sender. - - - - The e-mail address of the sender. - - - - - - Gets or sets the subject line of the e-mail message. - - - The subject line of the e-mail message. - - - - The subject line of the e-mail message. - - - - - - Gets or sets the name of the SMTP relay mail server to use to send - the e-mail messages. - - - The name of the e-mail relay server. If SmtpServer is not set, the - name of the local SMTP server is used. - - - - The name of the e-mail relay server. If SmtpServer is not set, the - name of the local SMTP server is used. - - - - - - Obsolete - - - Use the BufferingAppenderSkeleton Fix methods instead - - - - Obsolete property. - - - - - - The mode to use to authentication with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - Valid Authentication mode values are: , - , and . - The default value is . When using - you must specify the - and to use to authenticate. - When using the Windows credentials for the current - thread, if impersonating, or the process will be used to authenticate. - - - - - - The username to use to authenticate with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - A and must be specified when - is set to , - otherwise the username will be ignored. - - - - - - The password to use to authenticate with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - A and must be specified when - is set to , - otherwise the password will be ignored. - - - - - - The port on which the SMTP server is listening - - - Server Port is only available on the MS .NET 1.1 runtime. - - The port on which the SMTP server is listening. The default - port is 25. The Port can only be changed when running on - the MS .NET 1.1 runtime. - - - - - - Gets or sets the priority of the e-mail message - - - One of the values. - - - - Sets the priority of the e-mails generated by this - appender. The default priority is . - - - If you are using this appender to report errors then - you may want to set the priority to . - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Values for the property. - - - - SMTP authentication modes. - - - - - - No authentication - - - - - Basic authentication. - - - Requires a username and password to be supplied - - - - - Integrated authentication - - - Uses the Windows credentials from the current thread or process to authenticate. - - - - - Send an email when a specific logging event occurs, typically on errors - or fatal errors. Rather than sending via smtp it writes a file into the - directory specified by . This allows services such - as the IIS SMTP agent to manage sending the messages. - - - - The configuration for this appender is identical to that of the SMTPAppender, - except that instead of specifying the SMTPAppender.SMTPHost you specify - . - - - The number of logging events delivered in this e-mail depend on - the value of option. The - keeps only the last - logging events in its - cyclic buffer. This keeps memory requirements at a reasonable level while - still delivering useful application context. - - - Niall Daley - Nicko Cadell - - - - Default constructor - - - - Default constructor - - - - - - Sends the contents of the cyclic buffer as an e-mail message. - - The logging events to send. - - - Sends the contents of the cyclic buffer as an e-mail message. - - - - - - Activate the options on this appender. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Convert a path into a fully qualified path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - - - - The security context to use for privileged calls - - - - - Gets or sets a semicolon-delimited list of recipient e-mail addresses. - - - A semicolon-delimited list of e-mail addresses. - - - - A semicolon-delimited list of e-mail addresses. - - - - - - Gets or sets the e-mail address of the sender. - - - The e-mail address of the sender. - - - - The e-mail address of the sender. - - - - - - Gets or sets the subject line of the e-mail message. - - - The subject line of the e-mail message. - - - - The subject line of the e-mail message. - - - - - - Gets or sets the path to write the messages to. - - - - Gets or sets the path to write the messages to. This should be the same - as that used by the agent sending the messages. - - - - - - Gets or sets the used to write to the pickup directory. - - - The used to write to the pickup directory. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appender that allows clients to connect via Telnet to receive log messages - - - - The TelnetAppender accepts socket connections and streams logging messages - back to the client. - The output is provided in a telnet-friendly way so that a log can be monitored - over a TCP/IP socket. - This allows simple remote monitoring of application logging. - - - The default is 23 (the telnet port). - - - Keith Long - Nicko Cadell - - - - Default constructor - - - - Default constructor - - - - - - Overrides the parent method to close the socket handler - - - - Closes all the outstanding connections. - - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Create the socket handler and wait for connections - - - - - - Writes the logging event to each connected client. - - The event to log. - - - Writes the logging event to each connected client. - - - - - - Gets or sets the TCP port number on which this will listen for connections. - - - An integer value in the range to - indicating the TCP port number on which this will listen for connections. - - - - The default value is 23 (the telnet port). - - - The value specified is less than - or greater than . - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Helper class to manage connected clients - - - - The SocketHandler class is used to accept connections from - clients. It is threaded so that clients can connect/disconnect - asynchronously. - - - - - - Opens a new server port on - - the local port to listen on for connections - - - Creates a socket handler on the specified local server port. - - - - - - Sends a string message to each of the connected clients - - the text to send - - - Sends a string message to each of the connected clients - - - - - - Add a client to the internal clients list - - client to add - - - - Remove a client from the internal clients list - - client to remove - - - - Callback used to accept a connection on the server socket - - The result of the asynchronous operation - - - On connection adds to the list of connections - if there are two many open connections you will be disconnected - - - - - - Close all network connections - - - - Make sure we close all network connections - - - - - - Test if this handler has active connections - - - true if this handler has active connections - - - - This property will be true while this handler has - active connections, that is at least one connection that - the handler will attempt to send a message to. - - - - - - Class that represents a client connected to this handler - - - - Class that represents a client connected to this handler - - - - - - Create this for the specified - - the client's socket - - - Opens a stream writer on the socket. - - - - - - Write a string to the client - - string to send - - - Write a string to the client - - - - - - Cleanup the clients connection - - - - Close the socket connection. - - - - - - Appends log events to the system. - - - - The application configuration file can be used to control what listeners - are actually used. See the MSDN documentation for the - class for details on configuring the - trace system. - - - Events are written using the System.Diagnostics.Trace.Write(string,string) - method. The event's logger name is passed as the value for the category name to the Write method. - - - Compact Framework
- The Compact Framework does not support the - class for any operation except Assert. When using the Compact Framework this - appender will write to the system rather than - the Trace system. This appender will therefore behave like the . -
-
- Douglas de la Torre - Nicko Cadell - Gert Driesen -
- - - Initializes a new instance of the . - - - - Default constructor. - - - - - - Initializes a new instance of the - with a specified layout. - - The layout to use with this appender. - - - Obsolete constructor. - - - - - - Writes the logging event to the system. - - The event to log. - - - Writes the logging event to the system. - - - - - - Immediate flush means that the underlying writer or output stream - will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logs events are not actually written to persistent media if and - when the application crashes. - - - The default value is true. - - - - - Gets or sets a value that indicates whether the appender will - flush at the end of each write. - - - The default behavior is to flush at the end of each - write. If the option is set tofalse, then the underlying - stream can defer writing to physical medium to a later time. - - - Avoiding the flush operation at the end of each append results - in a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Assembly level attribute that specifies a domain to alias to this assembly's repository. - - - - AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute. - - - An assembly's logger repository is defined by its , - however this can be overridden by an assembly loaded before the target assembly. - - - An assembly can alias another assembly's domain to its repository by - specifying this attribute with the name of the target domain. - - - This attribute can only be specified on the assembly and may be used - as many times as necessary to alias all the required domains. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute that specifies a repository to alias to this assembly's repository. - - - - An assembly's logger repository is defined by its , - however this can be overridden by an assembly loaded before the target assembly. - - - An assembly can alias another assembly's repository to its repository by - specifying this attribute with the name of the target repository. - - - This attribute can only be specified on the assembly and may be used - as many times as necessary to alias all the required repositories. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class with - the specified repository to alias to this assembly's repository. - - The repository to alias to this assemby's repository. - - - Initializes a new instance of the class with - the specified repository to alias to this assembly's repository. - - - - - - Gets or sets the repository to alias to this assemby's repository. - - - The repository to alias to this assemby's repository. - - - - The name of the repository to alias to this assemby's repository. - - - - - - Initializes a new instance of the class with - the specified domain to alias to this assembly's repository. - - The domain to alias to this assemby's repository. - - - Obsolete. Use instead of . - - - - - - Use this class to quickly configure a . - - - - Allows very simple programmatic configuration of log4net. - - - Only one appender can be configured using this configurator. - The appender is set at the root of the hierarchy and all logging - events will be delivered to that appender. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Initializes the log4net system with a default configuration. - - - - Initializes the log4net logging system using a - that will write to Console.Out. The log messages are - formatted using the layout object - with the - layout style. - - - - - - Initializes the log4net system using the specified appender. - - The appender to use to log all logging events. - - - Initializes the log4net system using the specified appender. - - - - - - Initializes the with a default configuration. - - The repository to configure. - - - Initializes the specified repository using a - that will write to Console.Out. The log messages are - formatted using the layout object - with the - layout style. - - - - - - Initializes the using the specified appender. - - The repository to configure. - The appender to use to log all logging events. - - - Initializes the using the specified appender. - - - - - - Base class for all log4net configuration attributes. - - - This is an abstract class that must be extended by - specific configurators. This attribute allows the - configurator to be parameterized by an assembly level - attribute. - - Nicko Cadell - Gert Driesen - - - - Constructor used by subclasses. - - the ordering priority for this configurator - - - The is used to order the configurator - attributes before they are invoked. Higher priority configurators are executed - before lower priority ones. - - - - - - Configures the for the specified assembly. - - The assembly that this attribute was defined on. - The repository to configure. - - - Abstract method implemented by a subclass. When this method is called - the subclass should configure the . - - - - - - Compare this instance to another ConfiguratorAttribute - - the object to compare to - see - - - Compares the priorities of the two instances. - Sorts by priority in descending order. Objects with the same priority are - randomly ordered. - - - - - - Assembly level attribute that specifies the logging domain for the assembly. - - - - DomainAttribute is obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - Assemblies are mapped to logging domains. Each domain has its own - logging repository. This attribute specified on the assembly controls - the configuration of the domain. The property specifies the name - of the domain that this assembly is a part of. The - specifies the type of the repository objects to create for the domain. If - this attribute is not specified and a is not specified - then the assembly will be part of the default shared logging domain. - - - This attribute can only be specified on the assembly and may only be used - once per assembly. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute that specifies the logging repository for the assembly. - - - - Assemblies are mapped to logging repository. This attribute specified - on the assembly controls - the configuration of the repository. The property specifies the name - of the repository that this assembly is a part of. The - specifies the type of the object - to create for the assembly. If this attribute is not specified or a - is not specified then the assembly will be part of the default shared logging repository. - - - This attribute can only be specified on the assembly and may only be used - once per assembly. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initialize a new instance of the class - with the name of the repository. - - The name of the repository. - - - Initialize the attribute with the name for the assembly's repository. - - - - - - Gets or sets the name of the logging repository. - - - The string name to use as the name of the repository associated with this - assembly. - - - - This value does not have to be unique. Several assemblies can share the - same repository. They will share the logging configuration of the repository. - - - - - - Gets or sets the type of repository to create for this assembly. - - - The type of repository to create for this assembly. - - - - The type of the repository to create for the assembly. - The type must implement the - interface. - - - This will be the type of repository created when - the repository is created. If multiple assemblies reference the - same repository then the repository is only created once using the - of the first assembly to call into the - repository. - - - - - - Initializes a new instance of the class. - - - - Obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - - - - Initialize a new instance of the class - with the name of the domain. - - The name of the domain. - - - Obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - - - - Use this class to initialize the log4net environment using an Xml tree. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - Configures a using an Xml tree. - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - - - Automatically configures the log4net system based on the - application's configuration settings. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - - - Automatically configures the using settings - stored in the application's configuration file. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - The repository to configure. - - - - Configures log4net using a log4net element - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Loads the log4net configuration from the XML element - supplied as . - - The element to parse. - - - - Configures the using the specified XML - element. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Loads the log4net configuration from the XML element - supplied as . - - The repository to configure. - The element to parse. - - - - Configures log4net using the specified configuration file. - - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - DOMConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures log4net using the specified configuration file. - - A stream to load the XML configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - DOMConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The stream to load the XML configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures log4net using the file specified, monitors the file for changes - and reloads the configuration if a change is detected. - - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the using the file specified, - monitors the file for changes and reloads the configuration if a change - is detected. - - The repository to configure. - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Assembly level attribute to configure the . - - - - AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute. - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute to configure the . - - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - If neither of the or - properties are set the configuration is loaded from the application's .config file. - If set the property takes priority over the - property. The property - specifies a path to a file to load the config from. The path is relative to the - application's base directory; . - The property is used as a postfix to the assembly file name. - The config file must be located in the application's base directory; . - For example in a console application setting the to - config has the same effect as not specifying the or - properties. - - - The property can be set to cause the - to watch the configuration file for changes. - - - - Log4net will only look for assembly level configuration attributes once. - When using the log4net assembly level attributes to control the configuration - of log4net you must ensure that the first call to any of the - methods is made from the assembly with the configuration - attributes. - - - If you cannot guarantee the order in which log4net calls will be made from - different assemblies you must use programmatic configuration instead, i.e. - call the method directly. - - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Default constructor - - - - - - Configures the for the specified assembly. - - The assembly that this attribute was defined on. - The repository to configure. - - - Configure the repository using the . - The specified must extend the - class otherwise the will not be able to - configure it. - - - The does not extend . - - - - Attempt to load configuration from the local file system - - The assembly that this attribute was defined on. - The repository to configure. - - - - Configure the specified repository using a - - The repository to configure. - the FileInfo pointing to the config file - - - - Attempt to load configuration from a URI - - The assembly that this attribute was defined on. - The repository to configure. - - - - Gets or sets the filename of the configuration file. - - - The filename of the configuration file. - - - - If specified, this is the name of the configuration file to use with - the . This file path is relative to the - application base directory (). - - - The takes priority over the . - - - - - - Gets or sets the extension of the configuration file. - - - The extension of the configuration file. - - - - If specified this is the extension for the configuration file. - The path to the config file is built by using the application - base directory (), - the assembly file name and the config file extension. - - - If the is set to MyExt then - possible config file names would be: MyConsoleApp.exe.MyExt or - MyClassLibrary.dll.MyExt. - - - The takes priority over the . - - - - - - Gets or sets a value indicating whether to watch the configuration file. - - - true if the configuration should be watched, false otherwise. - - - - If this flag is specified and set to true then the framework - will watch the configuration file and will reload the config each time - the file is modified. - - - The config file can only be watched if it is loaded from local disk. - In a No-Touch (Smart Client) deployment where the application is downloaded - from a web server the config file may not reside on the local disk - and therefore it may not be able to watch it. - - - Watching configuration is not supported on the SSCLI. - - - - - - Class to register for the log4net section of the configuration file - - - The log4net section of the configuration file needs to have a section - handler registered. This is the section handler used. It simply returns - the XML element that is the root of the section. - - - Example of registering the log4net section handler : - - - -
- - - log4net configuration XML goes here - - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Parses the configuration section. - - The configuration settings in a corresponding parent configuration section. - The configuration context when called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is a null reference. - The for the log4net section. - The for the log4net section. - - - Returns the containing the configuration data, - - - - - - Assembly level attribute that specifies a plugin to attach to - the repository. - - - - Specifies the type of a plugin to create and attach to the - assembly's repository. The plugin type must implement the - interface. - - - Nicko Cadell - Gert Driesen - - - - Interface used to create plugins. - - - - Interface used to create a plugin. - - - Nicko Cadell - Gert Driesen - - - - Creates the plugin object. - - the new plugin instance - - - Create and return a new plugin instance. - - - - - - Initializes a new instance of the class - with the specified type. - - The type name of plugin to create. - - - Create the attribute with the plugin type specified. - - - Where possible use the constructor that takes a . - - - - - - Initializes a new instance of the class - with the specified type. - - The type of plugin to create. - - - Create the attribute with the plugin type specified. - - - - - - Creates the plugin object defined by this attribute. - - - - Creates the instance of the object as - specified by this attribute. - - - The plugin object. - - - - Returns a representation of the properties of this object. - - - - Overrides base class method to - return a representation of the properties of this object. - - - A representation of the properties of this object - - - - Gets or sets the type for the plugin. - - - The type for the plugin. - - - - The type for the plugin. - - - - - - Gets or sets the type name for the plugin. - - - The type name for the plugin. - - - - The type name for the plugin. - - - Where possible use the property instead. - - - - - - Assembly level attribute to configure the . - - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - Nicko Cadell - - - - Construct provider attribute with type specified - - the type of the provider to use - - - The provider specified must subclass the - class. - - - - - - Configures the SecurityContextProvider - - The assembly that this attribute was defined on. - The repository to configure. - - - Creates a provider instance from the specified. - Sets this as the default security context provider . - - - - - - Gets or sets the type of the provider to use. - - - the type of the provider to use. - - - - The provider specified must subclass the - class. - - - - - - Use this class to initialize the log4net environment using an Xml tree. - - - - Configures a using an Xml tree. - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - - - Automatically configures the log4net system based on the - application's configuration settings. - - - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - To use this method to configure log4net you must specify - the section - handler for the log4net configuration section. See the - for an example. - - - - - - - Automatically configures the using settings - stored in the application's configuration file. - - - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - To use this method to configure log4net you must specify - the section - handler for the log4net configuration section. See the - for an example. - - - The repository to configure. - - - - Configures log4net using a log4net element - - - - Loads the log4net configuration from the XML element - supplied as . - - - The element to parse. - - - - Configures the using the specified XML - element. - - - Loads the log4net configuration from the XML element - supplied as . - - The repository to configure. - The element to parse. - - - - Configures log4net using the specified configuration file. - - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The first element matching <configuration> will be read as the - configuration. If this file is also a .NET .config file then you must specify - a configuration section for the log4net element otherwise .NET will - complain. Set the type for the section handler to , for example: - - -
- - - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - XmlConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures log4net using the specified configuration URI. - - A URI to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The must support the URI scheme specified. - - - - - - Configures log4net using the specified configuration data stream. - - A stream to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The first element matching <configuration> will be read as the - configuration. If this file is also a .NET .config file then you must specify - a configuration section for the log4net element otherwise .NET will - complain. Set the type for the section handler to , for example: - - -
- - - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - XmlConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures the using the specified configuration - URI. - - The repository to configure. - A URI to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The must support the URI scheme specified. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The stream to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures log4net using the file specified, monitors the file for changes - and reloads the configuration if a change is detected. - - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the using the file specified, - monitors the file for changes and reloads the configuration if a change - is detected. - - The repository to configure. - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the specified repository using a log4net element. - - The hierarchy to configure. - The element to parse. - - - Loads the log4net configuration from the XML element - supplied as . - - - This method is ultimately called by one of the Configure methods - to load the configuration from an . - - - - - - Class used to watch config files. - - - - Uses the to monitor - changes to a specified file. Because multiple change notifications - may be raised when the file is modified, a timer is used to - compress the notifications into a single event. The timer - waits for time before delivering - the event notification. If any further - change notifications arrive while the timer is waiting it - is reset and waits again for to - elapse. - - - - - - The default amount of time to wait after receiving notification - before reloading the config file. - - - - - Watch a specified config file used to configure a repository - - The repository to configure. - The configuration file to watch. - - - Watch a specified config file used to configure a repository - - - - - - Holds the FileInfo used to configure the XmlConfigurator - - - - - Holds the repository being configured. - - - - - The timer used to compress the notification events. - - - - - Initializes a new instance of the class. - - The repository to configure. - The configuration file to watch. - - - Initializes a new instance of the class. - - - - - - Event handler used by . - - The firing the event. - The argument indicates the file that caused the event to be fired. - - - This handler reloads the configuration from the file when the event is fired. - - - - - - Event handler used by . - - The firing the event. - The argument indicates the file that caused the event to be fired. - - - This handler reloads the configuration from the file when the event is fired. - - - - - - Called by the timer when the configuration has been updated. - - null - - - - The implementation of the interface suitable - for use with the compact framework - - - - This implementation is a simple - mapping between repository name and - object. - - - The .NET Compact Framework 1.0 does not support retrieving assembly - level attributes therefore unlike the DefaultRepositorySelector - this selector does not examine the calling assembly for attributes. - - - Nicko Cadell - - - - Interface used by the to select the . - - - - The uses a - to specify the policy for selecting the correct - to return to the caller. - - - Nicko Cadell - Gert Driesen - - - - Gets the for the specified assembly. - - The assembly to use to lookup to the - The for the assembly. - - - Gets the for the specified assembly. - - - How the association between and - is made is not defined. The implementation may choose any method for - this association. The results of this method must be repeatable, i.e. - when called again with the same arguments the result must be the - save value. - - - - - - Gets the named . - - The name to use to lookup to the . - The named - - Lookup a named . This is the repository created by - calling . - - - - - Creates a new repository for the assembly specified. - - The assembly to use to create the domain to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the domain - specified such that a call to with the - same assembly specified will return the same repository instance. - - - How the association between and - is made is not defined. The implementation may choose any method for - this association. - - - - - - Creates a new repository with the name specified. - - The name to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the name - specified such that a call to with the - same name will return the same repository instance. - - - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets an array of all currently defined repositories. - - - An array of the instances created by - this . - - - Gets an array of all of the repositories created by this selector. - - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - Create a new repository selector - - the type of the repositories to create, must implement - - - Create an new compact repository selector. - The default type for repositories must be specified, - an appropriate value would be . - - - throw if is null - throw if does not implement - - - - Get the for the specified assembly - - not used - The default - - - The argument is not used. This selector does not create a - separate repository for each assembly. - - - As a named repository is not specified the default repository is - returned. The default repository is named log4net-default-repository. - - - - - - Get the named - - the name of the repository to lookup - The named - - - Get the named . The default - repository is log4net-default-repository. Other repositories - must be created using the . - If the named repository does not exist an exception is thrown. - - - throw if is null - throw if the does not exist - - - - Create a new repository for the assembly specified - - not used - the type of repository to create, must implement - the repository created - - - The argument is not used. This selector does not create a - separate repository for each assembly. - - - If the is null then the - default repository type specified to the constructor is used. - - - As a named repository is not specified the default repository is - returned. The default repository is named log4net-default-repository. - - - - - - Create a new repository for the repository specified - - the repository to associate with the - the type of repository to create, must implement . - If this param is null then the default repository type is used. - the repository created - - - The created will be associated with the repository - specified such that a call to with the - same repository specified will return the same repository instance. - - - If the named repository already exists an exception will be thrown. - - - If is null then the default - repository type specified to the constructor is used. - - - throw if is null - throw if the already exists - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets a list of objects - - an array of all known objects - - - Gets an array of all of the repositories created by this selector. - - - - - - Notify the registered listeners that the repository has been created - - The repository that has been created - - - Raises the LoggerRepositoryCreatedEvent - event. - - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - The default implementation of the interface. - - - - Uses attributes defined on the calling assembly to determine how to - configure the hierarchy for the repository. - - - Nicko Cadell - Gert Driesen - - - - Creates a new repository selector. - - The type of the repositories to create, must implement - - - Create an new repository selector. - The default type for repositories must be specified, - an appropriate value would be . - - - is . - does not implement . - - - - Gets the for the specified assembly. - - The assembly use to lookup the . - - - The type of the created and the repository - to create can be overridden by specifying the - attribute on the . - - - The default values are to use the - implementation of the interface and to use the - as the name of the repository. - - - The created will be automatically configured using - any attributes defined on - the . - - - The for the assembly - is . - - - - Gets the for the specified repository. - - The repository to use to lookup the . - The for the specified repository. - - - Returns the named repository. If is null - a is thrown. If the repository - does not exist a is thrown. - - - Use to create a repository. - - - is . - does not exist. - - - - Create a new repository for the assembly specified - - the assembly to use to create the repository to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The type of the created and - the repository to create can be overridden by specifying the - attribute on the - . The default values are to use the - implementation of the - interface and to use the - as the name of the repository. - - - The created will be automatically - configured using any - attributes defined on the . - - - If a repository for the already exists - that repository will be returned. An error will not be raised and that - repository may be of a different type to that specified in . - Also the attribute on the - assembly may be used to override the repository type specified in - . - - - is . - - - - Creates a new repository for the assembly specified. - - the assembly to use to create the repository to associate with the . - The type of repository to create, must implement . - The name to assign to the created repository - Set to true to read and apply the assembly attributes - The repository created. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The type of the created and - the repository to create can be overridden by specifying the - attribute on the - . The default values are to use the - implementation of the - interface and to use the - as the name of the repository. - - - The created will be automatically - configured using any - attributes defined on the . - - - If a repository for the already exists - that repository will be returned. An error will not be raised and that - repository may be of a different type to that specified in . - Also the attribute on the - assembly may be used to override the repository type specified in - . - - - is . - - - - Creates a new repository for the specified repository. - - The repository to associate with the . - The type of repository to create, must implement . - If this param is then the default repository type is used. - The new repository. - - - The created will be associated with the repository - specified such that a call to with the - same repository specified will return the same repository instance. - - - is . - already exists. - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets a list of objects - - an array of all known objects - - - Gets an array of all of the repositories created by this selector. - - - - - - Aliases a repository to an existing repository. - - The repository to alias. - The repository that the repository is aliased to. - - - The repository specified will be aliased to the repository when created. - The repository must not already exist. - - - When the repository is created it must utilize the same repository type as - the repository it is aliased to, otherwise the aliasing will fail. - - - - is . - -or- - is . - - - - - Notifies the registered listeners that the repository has been created. - - The repository that has been created. - - - Raises the event. - - - - - - Gets the repository name and repository type for the specified assembly. - - The assembly that has a . - in/out param to hold the repository name to use for the assembly, caller should set this to the default value before calling. - in/out param to hold the type of the repository to create for the assembly, caller should set this to the default value before calling. - is . - - - - Configures the repository using information from the assembly. - - The assembly containing - attributes which define the configuration for the repository. - The repository to configure. - - is . - -or- - is . - - - - - Loads the attribute defined plugins on the assembly. - - The assembly that contains the attributes. - The repository to add the plugins to. - - is . - -or- - is . - - - - - Loads the attribute defined aliases on the assembly. - - The assembly that contains the attributes. - The repository to alias to. - - is . - -or- - is . - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - Defined error codes that can be passed to the method. - - - - Values passed to the method. - - - Nicko Cadell - - - - A general error - - - - - Error while writing output - - - - - Failed to flush file - - - - - Failed to close file - - - - - Unable to open output file - - - - - No layout specified - - - - - Failed to parse address - - - - - Appenders may delegate their error handling to an . - - - - Error handling is a particularly tedious to get right because by - definition errors are hard to predict and to reproduce. - - - Nicko Cadell - Gert Driesen - - - - Handles the error and information about the error condition is passed as - a parameter. - - The message associated with the error. - The that was thrown when the error occurred. - The error code associated with the error. - - - Handles the error and information about the error condition is passed as - a parameter. - - - - - - Prints the error message passed as a parameter. - - The message associated with the error. - The that was thrown when the error occurred. - - - See . - - - - - - Prints the error message passed as a parameter. - - The message associated with the error. - - - See . - - - - - - Interface for objects that require fixing. - - - - Interface that indicates that the object requires fixing before it - can be taken outside the context of the appender's - method. - - - When objects that implement this interface are stored - in the context properties maps - and - are fixed - (see ) the - method will be called. - - - Nicko Cadell - - - - Get a portable version of this object - - the portable instance of this object - - - Get a portable instance object that represents the current - state of this object. The portable object can be stored - and logged from any thread with identical results. - - - - - - Interface that all loggers implement - - - - This interface supports logging events and testing if a level - is enabled for logging. - - - These methods will not throw exceptions. Note to implementor, ensure - that the implementation of these methods cannot allow an exception - to be thrown to the caller. - - - Nicko Cadell - Gert Driesen - - - - This generic form is intended to be used by wrappers. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - the exception to log, including its stack trace. Pass null to not log an exception. - - - Generates a logging event for the specified using - the and . - - - - - - This is the most generic printing method that is intended to be used - by wrappers. - - The event being logged. - - - Logs the specified logging event through this logger. - - - - - - Checks if this logger is enabled for a given passed as parameter. - - The level to check. - - true if this logger is enabled for level, otherwise false. - - - - Test if this logger is going to log events of the specified . - - - - - - Gets the name of the logger. - - - The name of the logger. - - - - The name of this logger - - - - - - Gets the where this - Logger instance is attached to. - - - The that this logger belongs to. - - - - Gets the where this - Logger instance is attached to. - - - - - - Base interface for all wrappers - - - - Base interface for all wrappers. - - - All wrappers must implement this interface. - - - Nicko Cadell - - - - Get the implementation behind this wrapper object. - - - The object that in implementing this object. - - - - The object that in implementing this - object. The Logger object may not - be the same object as this object because of logger decorators. - This gets the actual underlying objects that is used to process - the log events. - - - - - - Delegate used to handle logger repository creation event notifications - - The which created the repository. - The event args - that holds the instance that has been created. - - - Delegate used to handle logger repository creation event notifications. - - - - - - Provides data for the event. - - - - A - event is raised every time a is created. - - - - - - The created - - - - - Construct instance using specified - - the that has been created - - - Construct instance using specified - - - - - - The that has been created - - - The that has been created - - - - The that has been created - - - - - - Test if an triggers an action - - - - Implementations of this interface allow certain appenders to decide - when to perform an appender specific action. - - - The action or behavior triggered is defined by the implementation. - - - Nicko Cadell - - - - Test if this event triggers the action - - The event to check - true if this event triggers the action, otherwise false - - - Return true if this event triggers the action - - - - - - Defines the default set of levels recognized by the system. - - - - Each has an associated . - - - Levels have a numeric that defines the relative - ordering between levels. Two Levels with the same - are deemed to be equivalent. - - - The levels that are recognized by log4net are set for each - and each repository can have different levels defined. The levels are stored - in the on the repository. Levels are - looked up by name from the . - - - When logging at level INFO the actual level used is not but - the value of LoggerRepository.LevelMap["INFO"]. The default value for this is - , but this can be changed by reconfiguring the level map. - - - Each level has a in addition to its . The - is the string that is written into the output log. By default - the display name is the same as the level name, but this can be used to alias levels - or to localize the log output. - - - Some of the predefined levels recognized by the system are: - - - - . - - - . - - - . - - - . - - - . - - - . - - - . - - - - Nicko Cadell - Gert Driesen - - - - Constructor - - Integer value for this level, higher values represent more severe levels. - The string name of this level. - The display name for this level. This may be localized or otherwise different from the name - - - Initializes a new instance of the class with - the specified level name and value. - - - - - - Constructor - - Integer value for this level, higher values represent more severe levels. - The string name of this level. - - - Initializes a new instance of the class with - the specified level name and value. - - - - - - Returns the representation of the current - . - - - A representation of the current . - - - - Returns the level . - - - - - - Compares levels. - - The object to compare against. - true if the objects are equal. - - - Compares the levels of instances, and - defers to base class if the target object is not a - instance. - - - - - - Returns a hash code - - A hash code for the current . - - - Returns a hash code suitable for use in hashing algorithms and data - structures like a hash table. - - - Returns the hash code of the level . - - - - - - Compares this instance to a specified object and returns an - indication of their relative values. - - A instance or to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the - values compared. The return value has these meanings: - - - Value - Meaning - - - Less than zero - This instance is less than . - - - Zero - This instance is equal to . - - - Greater than zero - - This instance is greater than . - -or- - is . - - - - - - - must be an instance of - or ; otherwise, an exception is thrown. - - - is not a . - - - - Returns a value indicating whether a specified - is greater than another specified . - - A - A - - true if is greater than - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is less than another specified . - - A - A - - true if is less than - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is greater than or equal to another specified . - - A - A - - true if is greater than or equal to - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is less than or equal to another specified . - - A - A - - true if is less than or equal to - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether two specified - objects have the same value. - - A or . - A or . - - true if the value of is the same as the - value of ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether two specified - objects have different values. - - A or . - A or . - - true if the value of is different from - the value of ; otherwise, false. - - - - Compares two levels. - - - - - - Compares two specified instances. - - The first to compare. - The second to compare. - - A 32-bit signed integer that indicates the relative order of the - two values compared. The return value has these meanings: - - - Value - Meaning - - - Less than zero - is less than . - - - Zero - is equal to . - - - Greater than zero - is greater than . - - - - - - Compares two levels. - - - - - - The level designates a higher level than all the rest. - - - - - The level designates very severe error events. - System unusable, emergencies. - - - - - The level designates very severe error events - that will presumably lead the application to abort. - - - - - The level designates very severe error events. - Take immediate action, alerts. - - - - - The level designates very severe error events. - Critical condition, critical. - - - - - The level designates very severe error events. - - - - - The level designates error events that might - still allow the application to continue running. - - - - - The level designates potentially harmful - situations. - - - - - The level designates informational messages - that highlight the progress of the application at the highest level. - - - - - The level designates informational messages that - highlight the progress of the application at coarse-grained level. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates the lowest level possible. - - - - - Gets the name of this level. - - - The name of this level. - - - - Gets the name of this level. - - - - - - Gets the value of this level. - - - The value of this level. - - - - Gets the value of this level. - - - - - - Gets the display name of this level. - - - The display name of this level. - - - - Gets the display name of this level. - - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a LevelCollection instance. - - list to create a readonly wrapper arround - - A LevelCollection wrapper that is read-only. - - - - - Initializes a new instance of the LevelCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the LevelCollection class - that has the specified initial capacity. - - - The number of elements that the new LevelCollection is initially capable of storing. - - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified LevelCollection. - - The LevelCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - Copies the entire LevelCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire LevelCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the LevelCollection. - - The to be added to the end of the LevelCollection. - The index at which the value has been added. - - - - Removes all elements from the LevelCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the LevelCollection. - - The to check for. - true if is found in the LevelCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the LevelCollection. - - The to locate in the LevelCollection. - - The zero-based index of the first occurrence of - in the entire LevelCollection, if found; otherwise, -1. - - - - - Inserts an element into the LevelCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the LevelCollection. - - The to remove from the LevelCollection. - - The specified was not found in the LevelCollection. - - - - - Removes the element at the specified index of the LevelCollection. - - The zero-based index of the element to remove. - - is less than zero - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the LevelCollection. - - An for the entire LevelCollection. - - - - Adds the elements of another LevelCollection to the current LevelCollection. - - The LevelCollection whose elements should be added to the end of the current LevelCollection. - The new of the LevelCollection. - - - - Adds the elements of a array to the current LevelCollection. - - The array whose elements should be added to the end of the LevelCollection. - The new of the LevelCollection. - - - - Adds the elements of a collection to the current LevelCollection. - - The collection whose elements should be added to the end of the LevelCollection. - The new of the LevelCollection. - - - - Sets the capacity to the actual number of elements. - - - - - is less than zero - -or- - is equal to or greater than . - - - - - is less than zero - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the LevelCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - The zero-based index of the element to get or set. - - is less than zero - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false - - - - Gets or sets the number of elements the LevelCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - A value - - - - - Supports simple iteration over a . - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - An evaluator that triggers at a threshold level - - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - Nicko Cadell - - - - The threshold for triggering - - - - - Create a new evaluator using the threshold. - - - - Create a new evaluator using the threshold. - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Create a new evaluator using the specified threshold. - - the threshold to trigger at - - - Create a new evaluator using the specified threshold. - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Is this the triggering event? - - The event to check - This method returns true, if the event level - is equal or higher than the . - Otherwise it returns false - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - the threshold to trigger at - - - The that will cause this evaluator to trigger - - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Mapping between string name and Level object - - - - Mapping between string name and object. - This mapping is held separately for each . - The level name is case insensitive. - - - Nicko Cadell - - - - Mapping from level name to Level object. The - level name is case insensitive - - - - - Construct the level map - - - - Construct the level map. - - - - - - Clear the internal maps of all levels - - - - Clear the internal maps of all levels - - - - - - Create a new Level and add it to the map - - the string to display for the Level - the level value to give to the Level - - - Create a new Level and add it to the map - - - - - - - Create a new Level and add it to the map - - the string to display for the Level - the level value to give to the Level - the display name to give to the Level - - - Create a new Level and add it to the map - - - - - - Add a Level to the map - - the Level to add - - - Add a Level to the map - - - - - - Lookup a named level from the map - - the name of the level to lookup is taken from this level. - If the level is not set on the map then this level is added - the level in the map with the name specified - - - Lookup a named level from the map. The name of the level to lookup is taken - from the property of the - argument. - - - If no level with the specified name is found then the - argument is added to the level map - and returned. - - - - - - Lookup a by name - - The name of the Level to lookup - a Level from the map with the name specified - - - Returns the from the - map with the name specified. If the no level is - found then null is returned. - - - - - - Return all possible levels as a list of Level objects. - - all possible levels as a list of Level objects - - - Return all possible levels as a list of Level objects. - - - - - - The internal representation of caller location information. - - - - This class uses the System.Diagnostics.StackTrace class to generate - a call stack. The caller's information is then extracted from this stack. - - - The System.Diagnostics.StackTrace class is not supported on the - .NET Compact Framework 1.0 therefore caller location information is not - available on that framework. - - - The System.Diagnostics.StackTrace class has this to say about Release builds: - - - "StackTrace information will be most informative with Debug build configurations. - By default, Debug builds include debug symbols, while Release builds do not. The - debug symbols contain most of the file, method name, line number, and column - information used in constructing StackFrame and StackTrace objects. StackTrace - might not report as many method calls as expected, due to code transformations - that occur during optimization." - - - This means that in a Release build the caller information may be incomplete or may - not exist at all! Therefore caller location information cannot be relied upon in a Release build. - - - Nicko Cadell - Gert Driesen - - - - When location information is not available the constant - NA is returned. Current value of this string - constant is ?. - - - - - Constructor - - The declaring type of the method that is - the stack boundary into the logging system for this call. - - - Initializes a new instance of the - class based on the current thread. - - - - - - Constructor - - The fully qualified class name. - The method name. - The file name. - The line number of the method within the file. - - - Initializes a new instance of the - class with the specified data. - - - - - - Gets the fully qualified class name of the caller making the logging - request. - - - The fully qualified class name of the caller making the logging - request. - - - - Gets the fully qualified class name of the caller making the logging - request. - - - - - - Gets the file name of the caller. - - - The file name of the caller. - - - - Gets the file name of the caller. - - - - - - Gets the line number of the caller. - - - The line number of the caller. - - - - Gets the line number of the caller. - - - - - - Gets the method name of the caller. - - - The method name of the caller. - - - - Gets the method name of the caller. - - - - - - Gets all available caller information - - - All available caller information, in the format - fully.qualified.classname.of.caller.methodName(Filename:line) - - - - Gets all available caller information, in the format - fully.qualified.classname.of.caller.methodName(Filename:line) - - - - - - Static manager that controls the creation of repositories - - - - Static manager that controls the creation of repositories - - - This class is used by the wrapper managers (e.g. ) - to provide access to the objects. - - - This manager also holds the that is used to - lookup and create repositories. The selector can be set either programmatically using - the property, or by setting the log4net.RepositorySelector - AppSetting in the applications config file to the fully qualified type name of the - selector to use. - - - Nicko Cadell - Gert Driesen - - - - Private constructor to prevent instances. Only static methods should be used. - - - - Private constructor to prevent instances. Only static methods should be used. - - - - - - Hook the shutdown event - - - - On the full .NET runtime, the static constructor hooks up the - AppDomain.ProcessExit and AppDomain.DomainUnload> events. - These are used to shutdown the log4net system as the application exits. - - - - - - Register for ProcessExit and DomainUnload events on the AppDomain - - - - This needs to be in a separate method because the events make - a LinkDemand for the ControlAppDomain SecurityPermission. Because - this is a LinkDemand it is demanded at JIT time. Therefore we cannot - catch the exception in the method itself, we have to catch it in the - caller. - - - - - - Return the default instance. - - the repository to lookup in - Return the default instance - - - Gets the for the repository specified - by the argument. - - - - - - Returns the default instance. - - The assembly to use to lookup the repository. - The default instance. - - - - Return the default instance. - - the repository to lookup in - Return the default instance - - - Gets the for the repository specified - by the argument. - - - - - - Returns the default instance. - - The assembly to use to lookup the repository. - The default instance. - - - Returns the default instance. - - - - - - Returns the named logger if it exists. - - The repository to lookup in. - The fully qualified logger name to look for. - - The logger found, or null if the named logger does not exist in the - specified repository. - - - - If the named logger exists (in the specified repository) then it - returns a reference to the logger, otherwise it returns - null. - - - - - - Returns the named logger if it exists. - - The assembly to use to lookup the repository. - The fully qualified logger name to look for. - - The logger found, or null if the named logger does not exist in the - specified assembly's repository. - - - - If the named logger exists (in the specified assembly's repository) then it - returns a reference to the logger, otherwise it returns - null. - - - - - - Returns all the currently defined loggers in the specified repository. - - The repository to lookup in. - All the defined loggers. - - - The root logger is not included in the returned array. - - - - - - Returns all the currently defined loggers in the specified assembly's repository. - - The assembly to use to lookup the repository. - All the defined loggers. - - - The root logger is not included in the returned array. - - - - - - Retrieves or creates a named logger. - - The repository to lookup in. - The name of the logger to retrieve. - The logger with the name specified. - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - - - - Retrieves or creates a named logger. - - The assembly to use to lookup the repository. - The name of the logger to retrieve. - The logger with the name specified. - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - - - - Shorthand for . - - The repository to lookup in. - The of which the fullname will be used as the name of the logger to retrieve. - The logger with the name specified. - - - Gets the logger for the fully qualified name of the type specified. - - - - - - Shorthand for . - - the assembly to use to lookup the repository - The of which the fullname will be used as the name of the logger to retrieve. - The logger with the name specified. - - - Gets the logger for the fully qualified name of the type specified. - - - - - - Shuts down the log4net system. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in all the - default repositories. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - The repository to shutdown. - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository for the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - The assembly to use to lookup the repository. - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository for the repository. The repository is looked up using - the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Resets all values contained in this repository instance to their defaults. - - The repository to reset. - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - - - - Resets all values contained in this repository instance to their defaults. - - The assembly to use to lookup the repository to reset. - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - - - - Creates a repository with the specified name. - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name. - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The name must be unique. Repositories cannot be redefined. - An Exception will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The name must be unique. Repositories cannot be redefined. - An Exception will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository for the specified assembly and repository type. - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - - - - Creates a repository for the specified assembly and repository type. - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - - - - Gets an array of all currently defined repositories. - - An array of all the known objects. - - - Gets an array of all currently defined repositories. - - - - - - Internal method to get pertinent version info. - - A string of version info. - - - - Called when the event fires - - the that is exiting - null - - - Called when the event fires. - - - When the event is triggered the log4net system is . - - - - - - Called when the event fires - - the that is exiting - null - - - Called when the event fires. - - - When the event is triggered the log4net system is . - - - - - - Initialize the default repository selector - - - - - Gets or sets the repository selector used by the . - - - The repository selector used by the . - - - - The repository selector () is used by - the to create and select repositories - (). - - - The caller to supplies either a string name - or an assembly (if not supplied the assembly is inferred using - ). - - - This context is used by the selector to lookup a specific repository. - - - For the full .NET Framework, the default repository is DefaultRepositorySelector; - for the .NET Compact Framework CompactRepositorySelector is the default - repository. - - - - - - Implementation of the interface. - - - - This class should be used as the base for all wrapper implementations. - - - Nicko Cadell - Gert Driesen - - - - Constructs a new wrapper for the specified logger. - - The logger to wrap. - - - Constructs a new wrapper for the specified logger. - - - - - - The logger that this object is wrapping - - - - - Gets the implementation behind this wrapper object. - - - The object that this object is implementing. - - - - The Logger object may not be the same object as this object - because of logger decorators. - - - This gets the actual underlying objects that is used to process - the log events. - - - - - - Portable data structure used by - - - - Portable data structure used by - - - Nicko Cadell - - - - The logger name. - - - - The logger name. - - - - - - Level of logging event. - - - - Level of logging event. Level cannot be Serializable - because it is a flyweight. Due to its special serialization it - cannot be declared final either. - - - - - - The application supplied message. - - - - The application supplied message of logging event. - - - - - - The name of thread - - - - The name of thread in which this logging event was generated - - - - - - The time the event was logged - - - - The TimeStamp is stored in the local time zone for this computer. - - - - - - Location information for the caller. - - - - Location information for the caller. - - - - - - String representation of the user - - - - String representation of the user's windows name, - like DOMAIN\username - - - - - - String representation of the identity. - - - - String representation of the current thread's principal identity. - - - - - - The string representation of the exception - - - - The string representation of the exception - - - - - - String representation of the AppDomain. - - - - String representation of the AppDomain. - - - - - - Additional event specific properties - - - - A logger or an appender may attach additional - properties to specific events. These properties - have a string key and an object value. - - - - - - Flags passed to the property - - - - Flags passed to the property - - - Nicko Cadell - - - - Fix the MDC - - - - - Fix the NDC - - - - - Fix the rendered message - - - - - Fix the thread name - - - - - Fix the callers location information - - - CAUTION: Very slow to generate - - - - - Fix the callers windows user name - - - CAUTION: Slow to generate - - - - - Fix the domain friendly name - - - - - Fix the callers principal name - - - CAUTION: May be slow to generate - - - - - Fix the exception text - - - - - Fix the event properties - - - - - No fields fixed - - - - - All fields fixed - - - - - Partial fields fixed - - - - This set of partial fields gives good performance. The following fields are fixed: - - - - - - - - - - - - - The internal representation of logging events. - - - - When an affirmative decision is made to log then a - instance is created. This instance - is passed around to the different log4net components. - - - This class is of concern to those wishing to extend log4net. - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - for incurred by calling but it - is essential to maintaining data consistency. - - - Nicko Cadell - Gert Driesen - Douglas de la Torre - Daniel Cazzulino - - - - The key into the Properties map for the host name value. - - - - - The key into the Properties map for the thread identity value. - - - - - The key into the Properties map for the user name value. - - - - - Initializes a new instance of the class - from the supplied parameters. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - The name of the logger of this event. - The level of this event. - The message of this event. - The exception for this event. - - - Except , and , - all fields of LoggingEvent are filled when actually needed. Call - to cache all data locally - to prevent inconsistencies. - - This method is called by the log4net framework - to create a logging event. - - - - - - Initializes a new instance of the class - using specific data. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - Data used to initialize the logging event. - The fields in the struct that have already been fixed. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - The parameter should be used to specify which fields in the - struct have been preset. Fields not specified in the - will be captured from the environment if requested or fixed. - - - - - - Initializes a new instance of the class - using specific data. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - Data used to initialize the logging event. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - This constructor sets this objects flags to , - this assumes that all the data relating to this event is passed in via the - parameter and no other data should be captured from the environment. - - - - - - Initializes a new instance of the class - using specific data. - - Data used to initialize the logging event. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - This constructor sets this objects flags to , - this assumes that all the data relating to this event is passed in via the - parameter and no other data should be captured from the environment. - - - - - - Serialization constructor - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Ensure that the repository is set. - - the value for the repository - - - - Write the rendered message to a TextWriter - - the writer to write the message to - - - Unlike the property this method - does store the message data in the internal cache. Therefore - if called only once this method should be faster than the - property, however if the message is - to be accessed multiple times then the property will be more efficient. - - - - - - Serializes this object into the provided. - - The to populate with data. - The destination for this serialization. - - - The data in this event must be fixed before it can be serialized. - - - The method must be called during the - method call if this event - is to be used outside that method. - - - - - - Gets the portable data for this . - - The for this event. - - - A new can be constructed using a - instance. - - - Does a fix of the data - in the logging event before returning the event data. - - - - - - Gets the portable data for this . - - The set of data to ensure is fixed in the LoggingEventData - The for this event. - - - A new can be constructed using a - instance. - - - - - - Returns this event's exception's rendered using the - . - - - This event's exception's rendered using the . - - - - Obsolete. Use instead. - - - - - - Returns this event's exception's rendered using the - . - - - This event's exception's rendered using the . - - - - Returns this event's exception's rendered using the - . - - - - - - Fix instance fields that hold volatile data. - - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - incurred by calling but it - is essential to maintaining data consistency. - - - Calling is equivalent to - calling passing the parameter - false. - - - See for more - information. - - - - - - Fixes instance fields that hold volatile data. - - Set to true to not fix data that takes a long time to fix. - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - for incurred by calling but it - is essential to maintaining data consistency. - - - The param controls the data that - is fixed. Some of the data that can be fixed takes a long time to - generate, therefore if you do not require those settings to be fixed - they can be ignored by setting the param - to true. This setting will ignore the - and settings. - - - Set to false to ensure that all - settings are fixed. - - - - - - Fix the fields specified by the parameter - - the fields to fix - - - Only fields specified in the will be fixed. - Fields will not be fixed if they have previously been fixed. - It is not possible to 'unfix' a field. - - - - - - Lookup a composite property in this event - - the key for the property to lookup - the value for the property - - - This event has composite properties that combine together properties from - several different contexts in the following order: - - - this events properties - - This event has that can be set. These - properties are specific to this event only. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - - - Get all the composite properties in this event - - the containing all the properties - - - See for details of the composite properties - stored by the event. - - - This method returns a single containing all the - properties defined for this event. - - - - - - The internal logging event data. - - - - - The internal logging event data. - - - - - The internal logging event data. - - - - - The fully qualified Type of the calling - logger class in the stack frame (i.e. the declaring type of the method). - - - - - The application supplied message of logging event. - - - - - The exception that was thrown. - - - This is not serialized. The string representation - is serialized instead. - - - - - The repository that generated the logging event - - - This is not serialized. - - - - - The fix state for this event - - - These flags indicate which fields have been fixed. - Not serialized. - - - - - Indicated that the internal cache is updateable (ie not fixed) - - - This is a seperate flag to m_fixFlags as it allows incrementel fixing and simpler - changes in the caching strategy. - - - - - Gets the time when the current process started. - - - This is the time when this process started. - - - - The TimeStamp is stored in the local time zone for this computer. - - - Tries to get the start time for the current process. - Failing that it returns the time of the first call to - this property. - - - Note that AppDomains may be loaded and unloaded within the - same process without the process terminating and therefore - without the process start time being reset. - - - - - - Gets the of the logging event. - - - The of the logging event. - - - - Gets the of the logging event. - - - - - - Gets the time of the logging event. - - - The time of the logging event. - - - - The TimeStamp is stored in the local time zone for this computer. - - - - - - Gets the name of the logger that logged the event. - - - The name of the logger that logged the event. - - - - Gets the name of the logger that logged the event. - - - - - - Gets the location information for this logging event. - - - The location information for this logging event. - - - - The collected information is cached for future use. - - - See the class for more information on - supported frameworks and the different behavior in Debug and - Release builds. - - - - - - Gets the message object used to initialize this event. - - - The message object used to initialize this event. - - - - Gets the message object used to initialize this event. - Note that this event may not have a valid message object. - If the event is serialized the message object will not - be transferred. To get the text of the message the - property must be used - not this property. - - - If there is no defined message object for this event then - null will be returned. - - - - - - Gets the exception object used to initialize this event. - - - The exception object used to initialize this event. - - - - Gets the exception object used to initialize this event. - Note that this event may not have a valid exception object. - If the event is serialized the exception object will not - be transferred. To get the text of the exception the - method must be used - not this property. - - - If there is no defined exception object for this event then - null will be returned. - - - - - - The that this event was created in. - - - - The that this event was created in. - - - - - - Gets the message, rendered through the . - - - The message rendered through the . - - - - The collected information is cached for future use. - - - - - - Gets the name of the current thread. - - - The name of the current thread, or the thread ID when - the name is not available. - - - - The collected information is cached for future use. - - - - - - Gets the name of the current user. - - - The name of the current user, or NOT AVAILABLE when the - underlying runtime has no support for retrieving the name of the - current user. - - - - Calls WindowsIdentity.GetCurrent().Name to get the name of - the current windows user. - - - To improve performance, we could cache the string representation of - the name, and reuse that as long as the identity stayed constant. - Once the identity changed, we would need to re-assign and re-render - the string. - - - However, the WindowsIdentity.GetCurrent() call seems to - return different objects every time, so the current implementation - doesn't do this type of caching. - - - Timing for these operations: - - - - Method - Results - - - WindowsIdentity.GetCurrent() - 10000 loops, 00:00:00.2031250 seconds - - - WindowsIdentity.GetCurrent().Name - 10000 loops, 00:00:08.0468750 seconds - - - - This means we could speed things up almost 40 times by caching the - value of the WindowsIdentity.GetCurrent().Name property, since - this takes (8.04-0.20) = 7.84375 seconds. - - - - - - Gets the identity of the current thread principal. - - - The string name of the identity of the current thread principal. - - - - Calls System.Threading.Thread.CurrentPrincipal.Identity.Name to get - the name of the current thread principal. - - - - - - Gets the AppDomain friendly name. - - - The AppDomain friendly name. - - - - Gets the AppDomain friendly name. - - - - - - Additional event specific properties. - - - Additional event specific properties. - - - - A logger or an appender may attach additional - properties to specific events. These properties - have a string key and an object value. - - - This property is for events that have been added directly to - this event. The aggregate properties (which include these - event properties) can be retrieved using - and . - - - Once the properties have been fixed this property - returns the combined cached properties. This ensures that updates to - this property are always reflected in the underlying storage. When - returning the combined properties there may be more keys in the - Dictionary than expected. - - - - - - The fixed fields in this event - - - The set of fields that are fixed in this event - - - - Fields will not be fixed if they have previously been fixed. - It is not possible to 'unfix' a field. - - - - - - Implementation of wrapper interface. - - - - This implementation of the interface - forwards to the held by the base class. - - - This logger has methods to allow the caller to log at the following - levels: - - - - DEBUG - - The and methods log messages - at the DEBUG level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - INFO - - The and methods log messages - at the INFO level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - WARN - - The and methods log messages - at the WARN level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - ERROR - - The and methods log messages - at the ERROR level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - FATAL - - The and methods log messages - at the FATAL level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - - The values for these levels and their semantic meanings can be changed by - configuring the for the repository. - - - Nicko Cadell - Gert Driesen - - - - The ILog interface is use by application to log messages into - the log4net framework. - - - - Use the to obtain logger instances - that implement this interface. The - static method is used to get logger instances. - - - This class contains methods for logging at different levels and also - has properties for determining if those logging levels are - enabled in the current configuration. - - - This interface can be implemented in different ways. This documentation - specifies reasonable behavior that a caller can expect from the actual - implementation, however different implementations reserve the right to - do things differently. - - - Simple example of logging messages - - ILog log = LogManager.GetLogger("application-log"); - - log.Info("Application Start"); - log.Debug("This is a debug message"); - - if (log.IsDebugEnabled) - { - log.Debug("This is another debug message"); - } - - - - - Nicko Cadell - Gert Driesen - - - Log a message object with the level. - - Log a message object with the level. - - The message object to log. - - - This method first checks if this logger is DEBUG - enabled by comparing the level of this logger with the - level. If this logger is - DEBUG enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of - the additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Logs a message object with the level. - - - - This method first checks if this logger is INFO - enabled by comparing the level of this logger with the - level. If this logger is - INFO enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Logs a message object with the INFO level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Log a message object with the level. - - - - This method first checks if this logger is WARN - enabled by comparing the level of this logger with the - level. If this logger is - WARN enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Logs a message object with the level. - - The message object to log. - - - This method first checks if this logger is ERROR - enabled by comparing the level of this logger with the - level. If this logger is - ERROR enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Log a message object with the level. - - - - This method first checks if this logger is FATAL - enabled by comparing the level of this logger with the - level. If this logger is - FATAL enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - - This function is intended to lessen the computational cost of - disabled log debug statements. - - For some ILog interface log, when you write: - - log.Debug("This is entry number: " + i ); - - - You incur the cost constructing the message, string construction and concatenation in - this case, regardless of whether the message is logged or not. - - - If you are worried about speed (who isn't), then you should write: - - - if (log.IsDebugEnabled) - { - log.Debug("This is entry number: " + i ); - } - - - This way you will not incur the cost of parameter - construction if debugging is disabled for log. On - the other hand, if the log is debug enabled, you - will incur the cost of evaluating whether the logger is debug - enabled twice. Once in and once in - the . This is an insignificant overhead - since evaluating a logger takes about 1% of the time it - takes to actually log. This is the preferred style of logging. - - Alternatively if your logger is available statically then the is debug - enabled state can be stored in a static variable like this: - - - private static readonly bool isDebugEnabled = log.IsDebugEnabled; - - - Then when you come to log you can write: - - - if (isDebugEnabled) - { - log.Debug("This is entry number: " + i ); - } - - - This way the debug enabled state is only queried once - when the class is loaded. Using a private static readonly - variable is the most efficient because it is a run time constant - and can be heavily optimized by the JIT compiler. - - - Of course if you use a static readonly variable to - hold the enabled state of the logger then you cannot - change the enabled state at runtime to vary the logging - that is produced. You have to decide if you need absolute - speed or runtime flexibility. - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Construct a new wrapper for the specified logger. - - The logger to wrap. - - - Construct a new wrapper for the specified logger. - - - - - - Virtual method called when the configuration of the repository changes - - the repository holding the levels - - - Virtual method called when the configuration of the repository changes - - - - - - Logs a message object with the DEBUG level. - - The message object to log. - - - This method first checks if this logger is DEBUG - enabled by comparing the level of this logger with the - DEBUG level. If this logger is - DEBUG enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the DEBUG level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the DEBUG level including - the stack trace of the passed - as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the INFO level. - - The message object to log. - - - This method first checks if this logger is INFO - enabled by comparing the level of this logger with the - INFO level. If this logger is - INFO enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of - the additivity flag. - - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the INFO level. - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the INFO level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the WARN level. - - the message object to log - - - This method first checks if this logger is WARN - enabled by comparing the level of this logger with the - WARN level. If this logger is - WARN enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the WARN level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the WARN level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the ERROR level. - - The message object to log. - - - This method first checks if this logger is ERROR - enabled by comparing the level of this logger with the - ERROR level. If this logger is - ERROR enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the ERROR level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the ERROR level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the FATAL level. - - The message object to log. - - - This method first checks if this logger is FATAL - enabled by comparing the level of this logger with the - FATAL level. If this logger is - FATAL enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the FATAL level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the FATAL level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Event handler for the event - - the repository - Empty - - - - The fully qualified name of this declaring type not the type of any subclass. - - - - - Checks if this logger is enabled for the DEBUG - level. - - - true if this logger is enabled for DEBUG events, - false otherwise. - - - - This function is intended to lessen the computational cost of - disabled log debug statements. - - - For some log Logger object, when you write: - - - log.Debug("This is entry number: " + i ); - - - You incur the cost constructing the message, concatenation in - this case, regardless of whether the message is logged or not. - - - If you are worried about speed, then you should write: - - - if (log.IsDebugEnabled()) - { - log.Debug("This is entry number: " + i ); - } - - - This way you will not incur the cost of parameter - construction if debugging is disabled for log. On - the other hand, if the log is debug enabled, you - will incur the cost of evaluating whether the logger is debug - enabled twice. Once in IsDebugEnabled and once in - the Debug. This is an insignificant overhead - since evaluating a logger takes about 1% of the time it - takes to actually log. - - - - - - Checks if this logger is enabled for the INFO level. - - - true if this logger is enabled for INFO events, - false otherwise. - - - - See for more information and examples - of using this method. - - - - - - - Checks if this logger is enabled for the WARN level. - - - true if this logger is enabled for WARN events, - false otherwise. - - - - See for more information and examples - of using this method. - - - - - - - Checks if this logger is enabled for the ERROR level. - - - true if this logger is enabled for ERROR events, - false otherwise. - - - - See for more information and examples of using this method. - - - - - - - Checks if this logger is enabled for the FATAL level. - - - true if this logger is enabled for FATAL events, - false otherwise. - - - - See for more information and examples of using this method. - - - - - - - A SecurityContext used by log4net when interacting with protected resources - - - - A SecurityContext used by log4net when interacting with protected resources - for example with operating system services. This can be used to impersonate - a principal that has been granted privileges on the system resources. - - - Nicko Cadell - - - - Impersonate this SecurityContext - - State supplied by the caller - An instance that will - revoke the impersonation of this SecurityContext, or null - - - Impersonate this security context. Further calls on the current - thread should now be made in the security context provided - by this object. When the result - method is called the security - context of the thread should be reverted to the state it was in - before was called. - - - - - - The providers default instances. - - - - A configured component that interacts with potentially protected system - resources uses a to provide the elevated - privileges required. If the object has - been not been explicitly provided to the component then the component - will request one from this . - - - By default the is - an instance of which returns only - objects. This is a reasonable default - where the privileges required are not know by the system. - - - This default behavior can be overridden by subclassing the - and overriding the method to return - the desired objects. The default provider - can be replaced by programmatically setting the value of the - property. - - - An alternative is to use the log4net.Config.SecurityContextProviderAttribute - This attribute can be applied to an assembly in the same way as the - log4net.Config.XmlConfiguratorAttribute". The attribute takes - the type to use as the as an argument. - - - Nicko Cadell - - - - The default provider - - - - - Protected default constructor to allow subclassing - - - - Protected default constructor to allow subclassing - - - - - - Create a SecurityContext for a consumer - - The consumer requesting the SecurityContext - An impersonation context - - - The default implementation is to return a . - - - Subclasses should override this method to provide their own - behavior. - - - - - - Gets or sets the default SecurityContextProvider - - - The default SecurityContextProvider - - - - The default provider is used by configured components that - require a and have not had one - given to them. - - - By default this is an instance of - that returns objects. - - - The default provider can be set programmatically by setting - the value of this property to a sub class of - that has the desired behavior. - - - - - - Delegate used to handle creation of new wrappers. - - The logger to wrap in a wrapper. - - - Delegate used to handle creation of new wrappers. This delegate - is called from the - method to construct the wrapper for the specified logger. - - - The delegate to use is supplied to the - constructor. - - - - - - Maps between logger objects and wrapper objects. - - - - This class maintains a mapping between objects and - objects. Use the method to - lookup the for the specified . - - - New wrapper instances are created by the - method. The default behavior is for this method to delegate construction - of the wrapper to the delegate supplied - to the constructor. This allows specialization of the behavior without - requiring subclassing of this type. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the - - The handler to use to create the wrapper objects. - - - Initializes a new instance of the class with - the specified handler to create the wrapper objects. - - - - - - Gets the wrapper object for the specified logger. - - The wrapper object for the specified logger - - - If the logger is null then the corresponding wrapper is null. - - - Looks up the wrapper it it has previously been requested and - returns it. If the wrapper has never been requested before then - the virtual method is - called. - - - - - - Creates the wrapper object for the specified logger. - - The logger to wrap in a wrapper. - The wrapper object for the logger. - - - This implementation uses the - passed to the constructor to create the wrapper. This method - can be overridden in a subclass. - - - - - - Called when a monitored repository shutdown event is received. - - The that is shutting down - - - This method is called when a that this - is holding loggers for has signaled its shutdown - event . The default - behavior of this method is to release the references to the loggers - and their wrappers generated for this repository. - - - - - - Event handler for repository shutdown event. - - The sender of the event. - The event args. - - - - Map of logger repositories to hashtables of ILogger to ILoggerWrapper mappings - - - - - The handler to use to create the extension wrapper objects. - - - - - Internal reference to the delegate used to register for repository shutdown events. - - - - - Gets the map of logger repositories. - - - Map of logger repositories. - - - - Gets the hashtable that is keyed on . The - values are hashtables keyed on with the - value being the corresponding . - - - - - - Formats a as "HH:mm:ss,fff". - - - - Formats a in the format "HH:mm:ss,fff" for example, "15:49:37,459". - - - Nicko Cadell - Gert Driesen - - - - Render a as a string. - - - - Interface to abstract the rendering of a - instance into a string. - - - The method is used to render the - date to a text writer. - - - Nicko Cadell - Gert Driesen - - - - Formats the specified date as a string. - - The date to format. - The writer to write to. - - - Format the as a string and write it - to the provided. - - - - - - String constant used to specify AbsoluteTimeDateFormat in layouts. Current value is ABSOLUTE. - - - - - String constant used to specify DateTimeDateFormat in layouts. Current value is DATE. - - - - - String constant used to specify ISO8601DateFormat in layouts. Current value is ISO8601. - - - - - Renders the date into a string. Format is "HH:mm:ss". - - The date to render into a string. - The string builder to write to. - - - Subclasses should override this method to render the date - into a string using a precision up to the second. This method - will be called at most once per second and the result will be - reused if it is needed again during the same second. - - - - - - Renders the date into a string. Format is "HH:mm:ss,fff". - - The date to render into a string. - The writer to write to. - - - Uses the method to generate the - time string up to the seconds and then appends the current - milliseconds. The results from are - cached and is called at most once - per second. - - - Sub classes should override - rather than . - - - - - - Last stored time with precision up to the second. - - - - - Last stored time with precision up to the second, formatted - as a string. - - - - - Last stored time with precision up to the second, formatted - as a string. - - - - - Formats a as "dd MMM yyyy HH:mm:ss,fff" - - - - Formats a in the format - "dd MMM yyyy HH:mm:ss,fff" for example, - "06 Nov 1994 15:49:37,459". - - - Nicko Cadell - Gert Driesen - Angelika Schnagl - - - - Default constructor. - - - - Initializes a new instance of the class. - - - - - - Formats the date without the milliseconds part - - The date to format. - The string builder to write to. - - - Formats a DateTime in the format "dd MMM yyyy HH:mm:ss" - for example, "06 Nov 1994 15:49:37". - - - The base class will append the ",fff" milliseconds section. - This method will only be called at most once per second. - - - - - - The format info for the invariant culture. - - - - - Formats the as "yyyy-MM-dd HH:mm:ss,fff". - - - - Formats the specified as a string: "yyyy-MM-dd HH:mm:ss,fff". - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Formats the date without the milliseconds part - - The date to format. - The string builder to write to. - - - Formats the date specified as a string: "yyyy-MM-dd HH:mm:ss". - - - The base class will append the ",fff" milliseconds section. - This method will only be called at most once per second. - - - - - - Formats the using the method. - - - - Formats the using the method. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The format string. - - - Initializes a new instance of the class - with the specified format string. - - - The format string must be compatible with the options - that can be supplied to . - - - - - - Formats the date using . - - The date to convert to a string. - The writer to write to. - - - Uses the date format string supplied to the constructor to call - the method to format the date. - - - - - - The format string used to format the . - - - - The format string must be compatible with the options - that can be supplied to . - - - - - - This filter drops all . - - - - You can add this filter to the end of a filter chain to - switch from the default "accept all unless instructed otherwise" - filtering behavior to a "deny all unless instructed otherwise" - behavior. - - - Nicko Cadell - Gert Driesen - - - - Subclass this type to implement customized logging event filtering - - - - Users should extend this class to implement customized logging - event filtering. Note that and - , the parent class of all standard - appenders, have built-in filtering rules. It is suggested that you - first use and understand the built-in rules before rushing to write - your own custom filters. - - - This abstract class assumes and also imposes that filters be - organized in a linear chain. The - method of each filter is called sequentially, in the order of their - addition to the chain. - - - The method must return one - of the integer constants , - or . - - - If the value is returned, then the log event is dropped - immediately without consulting with the remaining filters. - - - If the value is returned, then the next filter - in the chain is consulted. If there are no more filters in the - chain, then the log event is logged. Thus, in the presence of no - filters, the default behavior is to log all logging events. - - - If the value is returned, then the log - event is logged without consulting the remaining filters. - - - The philosophy of log4net filters is largely inspired from the - Linux ipchains. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface to provide customized logging event filtering - - - - Users should implement this interface to implement customized logging - event filtering. Note that and - , the parent class of all standard - appenders, have built-in filtering rules. It is suggested that you - first use and understand the built-in rules before rushing to write - your own custom filters. - - - This abstract class assumes and also imposes that filters be - organized in a linear chain. The - method of each filter is called sequentially, in the order of their - addition to the chain. - - - The method must return one - of the integer constants , - or . - - - If the value is returned, then the log event is dropped - immediately without consulting with the remaining filters. - - - If the value is returned, then the next filter - in the chain is consulted. If there are no more filters in the - chain, then the log event is logged. Thus, in the presence of no - filters, the default behavior is to log all logging events. - - - If the value is returned, then the log - event is logged without consulting the remaining filters. - - - The philosophy of log4net filters is largely inspired from the - Linux ipchains. - - - Nicko Cadell - Gert Driesen - - - - Decide if the logging event should be logged through an appender. - - The LoggingEvent to decide upon - The decision of the filter - - - If the decision is , then the event will be - dropped. If the decision is , then the next - filter, if any, will be invoked. If the decision is then - the event will be logged without consulting with other filters in - the chain. - - - - - - Property to get and set the next filter - - - The next filter in the chain - - - - Filters are typically composed into chains. This property allows the next filter in - the chain to be accessed. - - - - - - Points to the next filter in the filter chain. - - - - See for more information. - - - - - - Initialize the filter with the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Typically filter's options become active immediately on set, - however this method must still be called. - - - - - - Decide if the should be logged through an appender. - - The to decide upon - The decision of the filter - - - If the decision is , then the event will be - dropped. If the decision is , then the next - filter, if any, will be invoked. If the decision is then - the event will be logged without consulting with other filters in - the chain. - - - This method is marked abstract and must be implemented - in a subclass. - - - - - - Property to get and set the next filter - - - The next filter in the chain - - - - Filters are typically composed into chains. This property allows the next filter in - the chain to be accessed. - - - - - - Default constructor - - - - - Always returns the integer constant - - the LoggingEvent to filter - Always returns - - - Ignores the event being logged and just returns - . This can be used to change the default filter - chain behavior from to . This filter - should only be used as the last filter in the chain - as any further filters will be ignored! - - - - - - The return result from - - - - The return result from - - - - - - The log event must be dropped immediately without - consulting with the remaining filters, if any, in the chain. - - - - - This filter is neutral with respect to the log event. - The remaining filters, if any, should be consulted for a final decision. - - - - - The log event must be logged immediately without - consulting with the remaining filters, if any, in the chain. - - - - - This is a very simple filter based on matching. - - - - The filter admits two options and - . If there is an exact match between the value - of the option and the of the - , then the method returns in - case the option value is set - to true, if it is false then - is returned. If the does not match then - the result will be . - - - Nicko Cadell - Gert Driesen - - - - flag to indicate if the filter should on a match - - - - - the to match against - - - - - Default constructor - - - - - Tests if the of the logging event matches that of the filter - - the event to filter - see remarks - - - If the of the event matches the level of the - filter then the result of the function depends on the - value of . If it is true then - the function will return , it it is false then it - will return . If the does not match then - the result will be . - - - - - - when matching - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - The that the filter will match - - - - The level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - This is a simple filter based on matching. - - - - The filter admits three options and - that determine the range of priorities that are matched, and - . If there is a match between the range - of priorities and the of the , then the - method returns in case the - option value is set to true, if it is false - then is returned. If there is no match, is returned. - - - Nicko Cadell - Gert Driesen - - - - Flag to indicate the behavior when matching a - - - - - the minimum value to match - - - - - the maximum value to match - - - - - Default constructor - - - - - Check if the event should be logged. - - the logging event to check - see remarks - - - If the of the logging event is outside the range - matched by this filter then - is returned. If the is matched then the value of - is checked. If it is true then - is returned, otherwise - is returned. - - - - - - when matching and - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - Set the minimum matched - - - - The minimum level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - Sets the maximum matched - - - - The maximum level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - Simple filter to match a string in the event's logger name. - - - - The works very similar to the . It admits two - options and . If the - of the starts - with the value of the option, then the - method returns in - case the option value is set to true, - if it is false then is returned. - - - Daniel Cazzulino - - - - Flag to indicate the behavior when we have a match - - - - - The logger name string to substring match against the event - - - - - Default constructor - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The rendered message is matched against the . - If the equals the beginning of - the incoming () - then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - when matching - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - The that the filter will match - - - - This filter will attempt to match this value against logger name in - the following way. The match will be done against the beginning of the - logger name (using ). The match is - case sensitive. If a match is found then - the result depends on the value of . - - - - - - Simple filter to match a keyed string in the - - - - Simple filter to match a keyed string in the - - - As the MDC has been replaced with layered properties the - should be used instead. - - - Nicko Cadell - Gert Driesen - - - - Simple filter to match a string an event property - - - - Simple filter to match a string in the value for a - specific event property - - - Nicko Cadell - - - - Simple filter to match a string in the rendered message - - - - Simple filter to match a string in the rendered message - - - Nicko Cadell - Gert Driesen - - - - Flag to indicate the behavior when we have a match - - - - - The string to substring match against the message - - - - - A string regex to match - - - - - A regex object to match (generated from m_stringRegexToMatch) - - - - - Default constructor - - - - - Initialize and precompile the Regex if required - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The rendered message is matched against the . - If the occurs as a substring within - the message then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - when matching or - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - Sets the static string to match - - - - The string that will be substring matched against - the rendered message. If the message contains this - string then the filter will match. If a match is found then - the result depends on the value of . - - - One of or - must be specified. - - - - - - Sets the regular expression to match - - - - The regular expression pattern that will be matched against - the rendered message. If the message matches this - pattern then the filter will match. If a match is found then - the result depends on the value of . - - - One of or - must be specified. - - - - - - The key to use to lookup the string from the event properties - - - - - Default constructor - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The event property for the is matched against - the . - If the occurs as a substring within - the property value then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - The key to lookup in the event properties and then match against. - - - - The key name to use to lookup in the properties map of the - . The match will be performed against - the value of this property if it exists. - - - - - - Simple filter to match a string in the - - - - Simple filter to match a string in the - - - As the MDC has been replaced with named stacks stored in the - properties collections the should - be used instead. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Sets the to "NDC". - - - - - - Write the event appdomain name to the output - - - - Writes the to the output writer. - - - Daniel Cazzulino - Nicko Cadell - - - - Abstract class that provides the formatting functionality that - derived classes need. - - - Conversion specifiers in a conversion patterns are parsed to - individual PatternConverters. Each of which is responsible for - converting a logging event in a converter specific manner. - - Nicko Cadell - - - - Abstract class that provides the formatting functionality that - derived classes need. - - - - Conversion specifiers in a conversion patterns are parsed to - individual PatternConverters. Each of which is responsible for - converting a logging event in a converter specific manner. - - - Nicko Cadell - Gert Driesen - - - - Initial buffer size - - - - - Maximum buffer size before it is recycled - - - - - Protected constructor - - - - Initializes a new instance of the class. - - - - - - Evaluate this pattern converter and write the output to a writer. - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the appropriate way. - - - - - - Set the next pattern converter in the chains - - the pattern converter that should follow this converter in the chain - the next converter - - - The PatternConverter can merge with its neighbor during this method (or a sub class). - Therefore the return value may or may not be the value of the argument passed in. - - - - - - Write the pattern converter to the writer with appropriate formatting - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - This method calls to allow the subclass to perform - appropriate conversion of the pattern converter. If formatting options have - been specified via the then this method will - apply those formattings before writing the output. - - - - - - Fast space padding method. - - to which the spaces will be appended. - The number of spaces to be padded. - - - Fast space padding method. - - - - - - The option string to the converter - - - - - Write an dictionary to a - - the writer to write to - a to use for object conversion - the value to write to the writer - - - Writes the to a writer in the form: - - - {key1=value1, key2=value2, key3=value3} - - - If the specified - is not null then it is used to render the key and value to text, otherwise - the object's ToString method is called. - - - - - - Write an object to a - - the writer to write to - a to use for object conversion - the value to write to the writer - - - Writes the Object to a writer. If the specified - is not null then it is used to render the object to text, otherwise - the object's ToString method is called. - - - - - - Get the next pattern converter in the chain - - - the next pattern converter in the chain - - - - Get the next pattern converter in the chain - - - - - - Gets or sets the formatting info for this converter - - - The formatting info for this converter - - - - Gets or sets the formatting info for this converter - - - - - - Gets or sets the option value for this converter - - - The option for this converter - - - - Gets or sets the option value for this converter - - - - - - Initializes a new instance of the class. - - - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the correct way. - - that will receive the formatted result. - The on which the pattern converter should be executed. - - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the correct way. - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - - Flag indicating if this converter handles exceptions - - - false if this converter handles exceptions - - - - - Flag indicating if this converter handles the logging event exception - - false if this converter handles the logging event exception - - - If this converter handles the exception object contained within - , then this property should be set to - false. Otherwise, if the layout ignores the exception - object, then the property should be set to true. - - - Set this value to override a this default setting. The default - value is true, this converter does not handle the exception. - - - - - - Write the event appdomain name to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the output . - - - - - - Date pattern converter, uses a to format - the date of a . - - - - Render the to the writer as a string. - - - The value of the determines - the formatting of the date. The following values are allowed: - - - Option value - Output - - - ISO8601 - - Uses the formatter. - Formats using the "yyyy-MM-dd HH:mm:ss,fff" pattern. - - - - DATE - - Uses the formatter. - Formats using the "dd MMM yyyy HH:mm:ss,fff" for example, "06 Nov 1994 15:49:37,459". - - - - ABSOLUTE - - Uses the formatter. - Formats using the "HH:mm:ss,yyyy" for example, "15:49:37,459". - - - - other - - Any other pattern string uses the formatter. - This formatter passes the pattern string to the - method. - For details on valid patterns see - DateTimeFormatInfo Class. - - - - - - The is in the local time zone and is rendered in that zone. - To output the time in Universal time see . - - - Nicko Cadell - - - - The used to render the date to a string - - - - The used to render the date to a string - - - - - - Initialize the converter pattern based on the property. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Convert the pattern into the rendered message - - that will receive the formatted result. - the event being logged - - - Pass the to the - for it to render it to the writer. - - - The passed is in the local time zone. - - - - - - Write the exception text to the output - - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - - - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - Nicko Cadell - - - - Default constructor - - - - - Write the exception text to the output - - that will receive the formatted result. - the event being logged - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - - - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - - - - Writes the caller location file name to the output - - - - Writes the value of the for - the event to the output writer. - - - Nicko Cadell - - - - Write the caller location file name to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the for - the to the output . - - - - - - Write the caller location info to the output - - - - Writes the to the output writer. - - - Nicko Cadell - - - - Write the caller location info to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the output writer. - - - - - - Writes the event identity to the output - - - - Writes the value of the to - the output writer. - - - Daniel Cazzulino - Nicko Cadell - - - - Writes the event identity to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the - to - the output . - - - - - - Write the event level to the output - - - - Writes the display name of the event - to the writer. - - - Nicko Cadell - - - - Write the event level to the output - - that will receive the formatted result. - the event being logged - - - Writes the of the - to the . - - - - - - Write the caller location line number to the output - - - - Writes the value of the for - the event to the output writer. - - - Nicko Cadell - - - - Write the caller location line number to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the for - the to the output . - - - - - - Converter for logger name - - - - Outputs the of the event. - - - Nicko Cadell - - - - Converter to output and truncate '.' separated strings - - - - This abstract class supports truncating a '.' separated string - to show a specified number of elements from the right hand side. - This is used to truncate class names that are fully qualified. - - - Subclasses should override the method to - return the fully qualified string. - - - Nicko Cadell - - - - Initialize the converter - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Get the fully qualified string data - - the event being logged - the fully qualified name - - - Overridden by subclasses to get the fully qualified name before the - precision is applied to it. - - - Return the fully qualified '.' (dot/period) separated string. - - - - - - Convert the pattern to the rendered message - - that will receive the formatted result. - the event being logged - - Render the to the precision - specified by the property. - - - - - Gets the fully qualified name of the logger - - the event being logged - The fully qualified logger name - - - Returns the of the . - - - - - - Writes the event message to the output - - - - Uses the method - to write out the event message. - - - Nicko Cadell - - - - Writes the event message to the output - - that will receive the formatted result. - the event being logged - - - Uses the method - to write out the event message. - - - - - - Write the method name to the output - - - - Writes the caller location to - the output. - - - Nicko Cadell - - - - Write the method name to the output - - that will receive the formatted result. - the event being logged - - - Writes the caller location to - the output. - - - - - - Converter to include event NDC - - - - Outputs the value of the event property named NDC. - - - The should be used instead. - - - Nicko Cadell - - - - Write the event NDC to the output - - that will receive the formatted result. - the event being logged - - - As the thread context stacks are now stored in named event properties - this converter simply looks up the value of the NDC property. - - - The should be used instead. - - - - - - Property pattern converter - - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - Nicko Cadell - - - - Write the property value to the output - - that will receive the formatted result. - the event being logged - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - - - - Converter to output the relative time of the event - - - - Converter to output the time of the event relative to the start of the program. - - - Nicko Cadell - - - - Write the relative time to the output - - that will receive the formatted result. - the event being logged - - - Writes out the relative time of the event in milliseconds. - That is the number of milliseconds between the event - and the . - - - - - - Helper method to get the time difference between two DateTime objects - - start time (in the current local time zone) - end time (in the current local time zone) - the time difference in milliseconds - - - - Converter to include event thread name - - - - Writes the to the output. - - - Nicko Cadell - - - - Write the ThreadName to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the . - - - - - - Pattern converter for the class name - - - - Outputs the of the event. - - - Nicko Cadell - - - - Gets the fully qualified name of the class - - the event being logged - The fully qualified type name for the caller location - - - Returns the of the . - - - - - - Converter to include event user name - - Douglas de la Torre - Nicko Cadell - - - - Convert the pattern to the rendered message - - that will receive the formatted result. - the event being logged - - - - Write the TimeStamp to the output - - - - Date pattern converter, uses a to format - the date of a . - - - Uses a to format the - in Universal time. - - - See the for details on the date pattern syntax. - - - - Nicko Cadell - - - - Write the TimeStamp to the output - - that will receive the formatted result. - the event being logged - - - Pass the to the - for it to render it to the writer. - - - The passed is in the local time zone, this is converted - to Universal time before it is rendered. - - - - - - - A Layout that renders only the Exception text from the logging event - - - - A Layout that renders only the Exception text from the logging event. - - - This Layout should only be used with appenders that utilize multiple - layouts (e.g. ). - - - Nicko Cadell - Gert Driesen - - - - Extend this abstract class to create your own log layout format. - - - - This is the base implementation of the - interface. Most layout objects should extend this class. - - - - - - Subclasses must implement the - method. - - - Subclasses should set the in their default - constructor. - - - - Nicko Cadell - Gert Driesen - - - - Interface implemented by layout objects - - - - An object is used to format a - as text. The method is called by an - appender to transform the into a string. - - - The layout can also supply and - text that is appender before any events and after all the events respectively. - - - Nicko Cadell - Gert Driesen - - - - Implement this method to create your own layout format. - - The TextWriter to write the formatted event to - The event to format - - - This method is called by an appender to format - the as text and output to a writer. - - - If the caller does not have a and prefers the - event to be formatted as a then the following - code can be used to format the event into a . - - - StringWriter writer = new StringWriter(); - Layout.Format(writer, loggingEvent); - string formattedEvent = writer.ToString(); - - - - - - The content type output by this layout. - - The content type - - - The content type output by this layout. - - - This is a MIME type e.g. "text/plain". - - - - - - The header for the layout format. - - the layout header - - - The Header text will be appended before any logging events - are formatted and appended. - - - - - - The footer for the layout format. - - the layout footer - - - The Footer text will be appended after all the logging events - have been formatted and appended. - - - - - - Flag indicating if this layout handle exceptions - - false if this layout handles exceptions - - - If this layout handles the exception object contained within - , then the layout should return - false. Otherwise, if the layout ignores the exception - object, then the layout should return true. - - - - - - The header text - - - - See for more information. - - - - - - The footer text - - - - See for more information. - - - - - - Flag indicating if this layout handles exceptions - - - - false if this layout handles exceptions - - - - - - Empty default constructor - - - - Empty default constructor - - - - - - Activate component options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - This method must be implemented by the subclass. - - - - - - Implement this method to create your own layout format. - - The TextWriter to write the formatted event to - The event to format - - - This method is called by an appender to format - the as text. - - - - - - The content type output by this layout. - - The content type is "text/plain" - - - The content type output by this layout. - - - This base class uses the value "text/plain". - To change this value a subclass must override this - property. - - - - - - The header for the layout format. - - the layout header - - - The Header text will be appended before any logging events - are formatted and appended. - - - - - - The footer for the layout format. - - the layout footer - - - The Footer text will be appended after all the logging events - have been formatted and appended. - - - - - - Flag indicating if this layout handles exceptions - - false if this layout handles exceptions - - - If this layout handles the exception object contained within - , then the layout should return - false. Otherwise, if the layout ignores the exception - object, then the layout should return true. - - - Set this value to override a this default setting. The default - value is true, this layout does not handle the exception. - - - - - - Default constructor - - - - Constructs a ExceptionLayout - - - - - - Activate component options - - - - Part of the component activation - framework. - - - This method does nothing as options become effective immediately. - - - - - - Gets the exception text from the logging event - - The TextWriter to write the formatted event to - the event being logged - - - Write the exception string to the . - The exception string is retrieved from . - - - - - - Interface for raw layout objects - - - - Interface used to format a - to an object. - - - This interface should not be confused with the - interface. This interface is used in - only certain specialized situations where a raw object is - required rather than a formatted string. The - is not generally useful than this interface. - - - Nicko Cadell - Gert Driesen - - - - Implement this method to create your own layout format. - - The event to format - returns the formatted event - - - Implement this method to create your own layout format. - - - - - - Adapts any to a - - - - Where an is required this adapter - allows a to be specified. - - - Nicko Cadell - Gert Driesen - - - - The layout to adapt - - - - - Construct a new adapter - - the layout to adapt - - - Create the adapter for the specified . - - - - - - Format the logging event as an object. - - The event to format - returns the formatted event - - - Format the logging event as an object. - - - Uses the object supplied to - the constructor to perform the formatting. - - - - - - A flexible layout configurable with pattern string. - - - - The goal of this class is to a - as a string. The results - depend on the conversion pattern. - - - The conversion pattern is closely related to the conversion - pattern of the printf function in C. A conversion pattern is - composed of literal text and format control expressions called - conversion specifiers. - - - You are free to insert any literal text within the conversion - pattern. - - - Each conversion specifier starts with a percent sign (%) and is - followed by optional format modifiers and a conversion - pattern name. The conversion pattern name specifies the type of - data, e.g. logger, level, date, thread name. The format - modifiers control such things as field width, padding, left and - right justification. The following is a simple example. - - - Let the conversion pattern be "%-5level [%thread]: %message%newline" and assume - that the log4net environment was set to use a PatternLayout. Then the - statements - - - ILog log = LogManager.GetLogger(typeof(TestApp)); - log.Debug("Message 1"); - log.Warn("Message 2"); - - would yield the output - - DEBUG [main]: Message 1 - WARN [main]: Message 2 - - - Note that there is no explicit separator between text and - conversion specifiers. The pattern parser knows when it has reached - the end of a conversion specifier when it reads a conversion - character. In the example above the conversion specifier - %-5level means the level of the logging event should be left - justified to a width of five characters. - - - The recognized conversion pattern names are: - - - - Conversion Pattern Name - Effect - - - a - Equivalent to appdomain - - - appdomain - - Used to output the friendly name of the AppDomain where the - logging event was generated. - - - - c - Equivalent to logger - - - C - Equivalent to type - - - class - Equivalent to type - - - d - Equivalent to date - - - date - - - Used to output the date of the logging event in the local time zone. - To output the date in universal time use the %utcdate pattern. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %date{HH:mm:ss,fff} or - %date{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %date{ISO8601} or %date{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - exception - - - Used to output the exception passed in with the log message. - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - - - F - Equivalent to file - - - file - - - Used to output the file name where the logging request was - issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - identity - - - Used to output the user name for the currently active user - (Principal.Identity.Name). - - - WARNING Generating caller information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - - - l - Equivalent to location - - - L - Equivalent to line - - - location - - - Used to output location information of the caller which generated - the logging event. - - - The location information depends on the CLI implementation but - usually consists of the fully qualified name of the calling - method followed by the callers source the file name and line - number between parentheses. - - - The location information can be very useful. However, its - generation is extremely slow. Its use should be avoided - unless execution speed is not an issue. - - - See the note below on the availability of caller location information. - - - - - level - - - Used to output the level of the logging event. - - - - - line - - - Used to output the line number from where the logging request - was issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - logger - - - Used to output the logger of the logging event. The - logger conversion specifier can be optionally followed by - precision specifier, that is a decimal constant in - brackets. - - - If a precision specifier is given, then only the corresponding - number of right most components of the logger name will be - printed. By default the logger name is printed in full. - - - For example, for the logger name "a.b.c" the pattern - %logger{2} will output "b.c". - - - - - m - Equivalent to message - - - M - Equivalent to method - - - message - - - Used to output the application supplied message associated with - the logging event. - - - - - mdc - - - The MDC (old name for the ThreadContext.Properties) is now part of the - combined event properties. This pattern is supported for compatibility - but is equivalent to property. - - - - - method - - - Used to output the method name where the logging request was - issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - n - Equivalent to newline - - - newline - - - Outputs the platform dependent line separator character or - characters. - - - This conversion pattern offers the same performance as using - non-portable line separator strings such as "\n", or "\r\n". - Thus, it is the preferred way of specifying a line separator. - - - - - ndc - - - Used to output the NDC (nested diagnostic context) associated - with the thread that generated the logging event. - - - - - p - Equivalent to level - - - P - Equivalent to property - - - properties - Equivalent to property - - - property - - - Used to output the an event specific property. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %property{user} would include the value - from the property that is keyed by the string 'user'. Each property value - that is to be included in the log must be specified separately. - Properties are added to events by loggers or appenders. By default - the log4net:HostName property is set to the name of machine on - which the event was originally logged. - - - If no key is specified, e.g. %property then all the keys and their - values are printed in a comma separated list. - - - The properties of an event are combined from a number of different - contexts. These are listed below in the order in which they are searched. - - - - the event properties - - The event has that can be set. These - properties are specific to this event only. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - - r - Equivalent to timestamp - - - t - Equivalent to thread - - - timestamp - - - Used to output the number of milliseconds elapsed since the start - of the application until the creation of the logging event. - - - - - thread - - - Used to output the name of the thread that generated the - logging event. Uses the thread number if no name is available. - - - - - type - - - Used to output the fully qualified type name of the caller - issuing the logging request. This conversion specifier - can be optionally followed by precision specifier, that - is a decimal constant in brackets. - - - If a precision specifier is given, then only the corresponding - number of right most components of the class name will be - printed. By default the class name is output in fully qualified form. - - - For example, for the class name "log4net.Layout.PatternLayout", the - pattern %type{1} will output "PatternLayout". - - - WARNING Generating the caller class information is - slow. Thus, its use should be avoided unless execution speed is - not an issue. - - - See the note below on the availability of caller location information. - - - - - u - Equivalent to identity - - - username - - - Used to output the WindowsIdentity for the currently - active user. - - - WARNING Generating caller WindowsIdentity information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - - - utcdate - - - Used to output the date of the logging event in universal time. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %utcdate{HH:mm:ss,fff} or - %utcdate{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %utcdate{ISO8601} or %utcdate{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - w - Equivalent to username - - - x - Equivalent to ndc - - - X - Equivalent to mdc - - - % - - - The sequence %% outputs a single percent sign. - - - - - - The single letter patterns are deprecated in favor of the - longer more descriptive pattern names. - - - By default the relevant information is output as is. However, - with the aid of format modifiers it is possible to change the - minimum field width, the maximum field width and justification. - - - The optional format modifier is placed between the percent sign - and the conversion pattern name. - - - The first optional format modifier is the left justification - flag which is just the minus (-) character. Then comes the - optional minimum field width modifier. This is a decimal - constant that represents the minimum number of characters to - output. If the data item requires fewer characters, it is padded on - either the left or the right until the minimum width is - reached. The default is to pad on the left (right justify) but you - can specify right padding with the left justification flag. The - padding character is space. If the data item is larger than the - minimum field width, the field is expanded to accommodate the - data. The value is never truncated. - - - This behavior can be changed using the maximum field - width modifier which is designated by a period followed by a - decimal constant. If the data item is longer than the maximum - field, then the extra characters are removed from the - beginning of the data item and not from the end. For - example, it the maximum field width is eight and the data item is - ten characters long, then the first two characters of the data item - are dropped. This behavior deviates from the printf function in C - where truncation is done from the end. - - - Below are various format modifier examples for the logger - conversion specifier. - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Format modifierleft justifyminimum widthmaximum widthcomment
%20loggerfalse20none - - Left pad with spaces if the logger name is less than 20 - characters long. - -
%-20loggertrue20none - - Right pad with spaces if the logger - name is less than 20 characters long. - -
%.30loggerNAnone30 - - Truncate from the beginning if the logger - name is longer than 30 characters. - -
%20.30loggerfalse2030 - - Left pad with spaces if the logger name is shorter than 20 - characters. However, if logger name is longer than 30 characters, - then truncate from the beginning. - -
%-20.30loggertrue2030 - - Right pad with spaces if the logger name is shorter than 20 - characters. However, if logger name is longer than 30 characters, - then truncate from the beginning. - -
-
- - Note about caller location information.
- The following patterns %type %file %line %method %location %class %C %F %L %l %M - all generate caller location information. - Location information uses the System.Diagnostics.StackTrace class to generate - a call stack. The caller's information is then extracted from this stack. -
- - - The System.Diagnostics.StackTrace class is not supported on the - .NET Compact Framework 1.0 therefore caller location information is not - available on that framework. - - - - - The System.Diagnostics.StackTrace class has this to say about Release builds: - - - "StackTrace information will be most informative with Debug build configurations. - By default, Debug builds include debug symbols, while Release builds do not. The - debug symbols contain most of the file, method name, line number, and column - information used in constructing StackFrame and StackTrace objects. StackTrace - might not report as many method calls as expected, due to code transformations - that occur during optimization." - - - This means that in a Release build the caller information may be incomplete or may - not exist at all! Therefore caller location information cannot be relied upon in a Release build. - - - - Additional pattern converters may be registered with a specific - instance using the method. - -
- - This is a more detailed pattern. - %timestamp [%thread] %level %logger %ndc - %message%newline - - - A similar pattern except that the relative time is - right padded if less than 6 digits, thread name is right padded if - less than 15 characters and truncated if longer and the logger - name is left padded if shorter than 30 characters and truncated if - longer. - %-6timestamp [%15.15thread] %-5level %30.30logger %ndc - %message%newline - - Nicko Cadell - Gert Driesen - Douglas de la Torre - Daniel Cazzulino -
- - - Default pattern string for log output. - - - - Default pattern string for log output. - Currently set to the string "%message%newline" - which just prints the application supplied message. - - - - - - A detailed conversion pattern - - - - A conversion pattern which includes Time, Thread, Logger, and Nested Context. - Current value is %timestamp [%thread] %level %logger %ndc - %message%newline. - - - - - - Internal map of converter identifiers to converter types. - - - - This static map is overridden by the m_converterRegistry instance map - - - - - - the pattern - - - - - the head of the pattern converter chain - - - - - patterns defined on this PatternLayout only - - - - - Initialize the global registry - - - - Defines the builtin global rules. - - - - - - Constructs a PatternLayout using the DefaultConversionPattern - - - - The default pattern just produces the application supplied message. - - - Note to Inheritors: This constructor calls the virtual method - . If you override this method be - aware that it will be called before your is called constructor. - - - As per the contract the - method must be called after the properties on this object have been - configured. - - - - - - Constructs a PatternLayout using the supplied conversion pattern - - the pattern to use - - - Note to Inheritors: This constructor calls the virtual method - . If you override this method be - aware that it will be called before your is called constructor. - - - When using this constructor the method - need not be called. This may not be the case when using a subclass. - - - - - - Create the pattern parser instance - - the pattern to parse - The that will format the event - - - Creates the used to parse the conversion string. Sets the - global and instance rules on the . - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a formatted string as specified by the conversion pattern. - - the event being logged - The TextWriter to write the formatted event to - - - Parse the using the patter format - specified in the property. - - - - - - Add a converter to this PatternLayout - - the converter info - - - This version of the method is used by the configurator. - Programmatic users should use the alternative method. - - - - - - Add a converter to this PatternLayout - - the name of the conversion pattern for this converter - the type of the converter - - - Add a named pattern converter to this instance. This - converter will be used in the formatting of the event. - This method must be called before . - - - The specified must extend the - type. - - - - - - The pattern formatting string - - - - The ConversionPattern option. This is the string which - controls formatting and consists of a mix of literal content and - conversion specifiers. - - - - - - Wrapper class used to map converter names to converter types - - - - Pattern converter info class used during configuration to - pass to the - method. - - - - - - default constructor - - - - - Gets or sets the name of the conversion pattern - - - - The name of the pattern in the format string - - - - - - Gets or sets the type of the converter - - - - The value specified must extend the - type. - - - - - - Type converter for the interface - - - - Used to convert objects to the interface. - Supports converting from the interface to - the interface using the . - - - Nicko Cadell - Gert Driesen - - - - Interface supported by type converters - - - - This interface supports conversion from arbitrary types - to a single target type. See . - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Test if the can be converted to the - type supported by this converter. - - - - - - Convert the source object to the type supported by this object - - the object to convert - the converted object - - - Converts the to the type supported - by this converter. - - - - - - Can the sourceType be converted to an - - the source to be to be converted - true if the source type can be converted to - - - Test if the can be converted to a - . Only is supported - as the . - - - - - - Convert the value to a object - - the value to convert - the object - - - Convert the object to a - object. If the object - is a then the - is used to adapt between the two interfaces, otherwise an - exception is thrown. - - - - - - Extract the value of a property from the - - - - Extract the value of a property from the - - - Nicko Cadell - - - - Constructs a RawPropertyLayout - - - - - Lookup the property for - - The event to format - returns property value - - - Looks up and returns the object value of the property - named . If there is no property defined - with than name then null will be returned. - - - - - - The name of the value to lookup in the LoggingEvent Properties collection. - - - Value to lookup in the LoggingEvent Properties collection - - - - String name of the property to lookup in the . - - - - - - Extract the date from the - - - - Extract the date from the - - - Nicko Cadell - Gert Driesen - - - - Constructs a RawTimeStampLayout - - - - - Gets the as a . - - The event to format - returns the time stamp - - - Gets the as a . - - - The time stamp is in local time. To format the time stamp - in universal time use . - - - - - - Extract the date from the - - - - Extract the date from the - - - Nicko Cadell - Gert Driesen - - - - Constructs a RawUtcTimeStampLayout - - - - - Gets the as a . - - The event to format - returns the time stamp - - - Gets the as a . - - - The time stamp is in universal time. To format the time stamp - in local time use . - - - - - - A very simple layout - - - - SimpleLayout consists of the level of the log statement, - followed by " - " and then the log message itself. For example, - - DEBUG - Hello world - - - - Nicko Cadell - Gert Driesen - - - - Constructs a SimpleLayout - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a simple formatted output. - - the event being logged - The TextWriter to write the formatted event to - - - Formats the event as the level of the even, - followed by " - " and then the log message itself. The - output is terminated by a newline. - - - - - - Layout that formats the log events as XML elements. - - - - The output of the consists of a series of - log4net:event elements. It does not output a complete well-formed XML - file. The output is designed to be included as an external entity - in a separate file to form a correct XML file. - - - For example, if abc is the name of the file where - the output goes, then a well-formed XML file would - be: - - - <?xml version="1.0" ?> - - <!DOCTYPE log4net:events SYSTEM "log4net-events.dtd" [<!ENTITY data SYSTEM "abc">]> - - <log4net:events version="1.2" xmlns:log4net="http://logging.apache.org/log4net/schemas/log4net-events-1.2> - &data; - </log4net:events> - - - This approach enforces the independence of the - and the appender where it is embedded. - - - The version attribute helps components to correctly - interpret output generated by . The value of - this attribute should be "1.2" for release 1.2 and later. - - - Alternatively the Header and Footer properties can be - configured to output the correct XML header, open tag and close tag. - When setting the Header and Footer properties it is essential - that the underlying data store not be appendable otherwise the data - will become invalid XML. - - - Nicko Cadell - Gert Driesen - - - - Layout that formats the log events as XML elements. - - - - This is an abstract class that must be subclassed by an implementation - to conform to a specific schema. - - - Deriving classes must implement the method. - - - Nicko Cadell - Gert Driesen - - - - Protected constructor to support subclasses - - - - Initializes a new instance of the class - with no location info. - - - - - - Protected constructor to support subclasses - - - - The parameter determines whether - location information will be output by the layout. If - is set to true, then the - file name and line number of the statement at the origin of the log - statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a formatted string. - - The event being logged. - The TextWriter to write the formatted event to - - - Format the and write it to the . - - - This method creates an that writes to the - . The is passed - to the method. Subclasses should override the - method rather than this method. - - - - - - Does the actual writing of the XML. - - The writer to use to output the event to. - The event to write. - - - Subclasses should override this method to format - the as XML. - - - - - - Flag to indicate if location information should be included in - the XML events. - - - - - Writer adapter that ignores Close - - - - - The string to replace invalid chars with - - - - - Gets a value indicating whether to include location information in - the XML events. - - - true if location information should be included in the XML - events; otherwise, false. - - - - If is set to true, then the file - name and line number of the statement at the origin of the log - statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - The string to replace characters that can not be expressed in XML with. - - - Not all characters may be expressed in XML. This property contains the - string to replace those that can not with. This defaults to a ?. Set it - to the empty string to simply remove offending characters. For more - details on the allowed character ranges see http://www.w3.org/TR/REC-xml/#charsets - Character replacement will occur in the log message, the property names - and the property values. - - - - - - - Gets the content type output by this layout. - - - As this is the XML layout, the value is always "text/xml". - - - - As this is the XML layout, the value is always "text/xml". - - - - - - Constructs an XmlLayout - - - - - Constructs an XmlLayout. - - - - The LocationInfo option takes a boolean value. By - default, it is set to false which means there will be no location - information output by this layout. If the the option is set to - true, then the file name and line number of the statement - at the origin of the log statement will be output. - - - If you are embedding this layout within an SmtpAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Builds a cache of the element names - - - - - - Does the actual writing of the XML. - - The writer to use to output the event to. - The event to write. - - - Override the base class method - to write the to the . - - - - - - The prefix to use for all generated element names - - - - - The prefix to use for all element names - - - - The default prefix is log4net. Set this property - to change the prefix. If the prefix is set to an empty string - then no prefix will be written. - - - - - - Set whether or not to base64 encode the message. - - - - By default the log message will be written as text to the xml - output. This can cause problems when the message contains binary - data. By setting this to true the contents of the message will be - base64 encoded. If this is set then invalid character replacement - (see ) will not be performed - on the log message. - - - - - - Set whether or not to base64 encode the property values. - - - - By default the properties will be written as text to the xml - output. This can cause problems when one or more properties contain - binary data. By setting this to true the values of the properties - will be base64 encoded. If this is set then invalid character replacement - (see ) will not be performed - on the property values. - - - - - - Layout that formats the log events as XML elements compatible with the log4j schema - - - - Formats the log events according to the http://logging.apache.org/log4j schema. - - - Nicko Cadell - - - - The 1st of January 1970 in UTC - - - - - Constructs an XMLLayoutSchemaLog4j - - - - - Constructs an XMLLayoutSchemaLog4j. - - - - The LocationInfo option takes a boolean value. By - default, it is set to false which means there will be no location - information output by this layout. If the the option is set to - true, then the file name and line number of the statement - at the origin of the log statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Actually do the writing of the xml - - the writer to use - the event to write - - - Generate XML that is compatible with the log4j schema. - - - - - - The version of the log4j schema to use. - - - - Only version 1.2 of the log4j schema is supported. - - - - - - The default object Renderer. - - - - The default renderer supports rendering objects and collections to strings. - - - See the method for details of the output. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface in order to render objects as strings - - - - Certain types require special case conversion to - string form. This conversion is done by an object renderer. - Object renderers implement the - interface. - - - Nicko Cadell - Gert Driesen - - - - Render the object to a string - - The map used to lookup renderers - The object to render - The writer to render to - - - Render the object to a - string. - - - The parameter is - provided to lookup and render other objects. This is - very useful where contains - nested objects of unknown type. The - method can be used to render these objects. - - - - - - Default constructor - - - - Default constructor - - - - - - Render the object to a string - - The map used to lookup renderers - The object to render - The writer to render to - - - Render the object to a string. - - - The parameter is - provided to lookup and render other objects. This is - very useful where contains - nested objects of unknown type. The - method can be used to render these objects. - - - The default renderer supports rendering objects to strings as follows: - - - - Value - Rendered String - - - null - - "(null)" - - - - - - - For a one dimensional array this is the - array type name, an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. - - - For example: int[] {1, 2, 3}. - - - If the array is not one dimensional the - Array.ToString() is returned. - - - - - , & - - - Rendered as an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. - - - For example: {a, b, c}. - - - All collection classes that implement its subclasses, - or generic equivalents all implement the interface. - - - - - - - - Rendered as the key, an equals sign ('='), and the value (using the appropriate - renderer). - - - For example: key=value. - - - - - other - - Object.ToString() - - - - - - - - Render the array argument into a string - - The map used to lookup renderers - the array to render - The writer to render to - - - For a one dimensional array this is the - array type name, an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. For example: - int[] {1, 2, 3}. - - - If the array is not one dimensional the - Array.ToString() is returned. - - - - - - Render the enumerator argument into a string - - The map used to lookup renderers - the enumerator to render - The writer to render to - - - Rendered as an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. For example: - {a, b, c}. - - - - - - Render the DictionaryEntry argument into a string - - The map used to lookup renderers - the DictionaryEntry to render - The writer to render to - - - Render the key, an equals sign ('='), and the value (using the appropriate - renderer). For example: key=value. - - - - - - Map class objects to an . - - - - Maintains a mapping between types that require special - rendering and the that - is used to render them. - - - The method is used to render an - object using the appropriate renderers defined in this map. - - - Nicko Cadell - Gert Driesen - - - - Default Constructor - - - - Default constructor. - - - - - - Render using the appropriate renderer. - - the object to render to a string - the object rendered as a string - - - This is a convenience method used to render an object to a string. - The alternative method - should be used when streaming output to a . - - - - - - Render using the appropriate renderer. - - the object to render to a string - The writer to render to - - - Find the appropriate renderer for the type of the - parameter. This is accomplished by calling the - method. Once a renderer is found, it is - applied on the object and the result is returned - as a . - - - - - - Gets the renderer for the specified object type - - the object to lookup the renderer for - the renderer for - - - Gets the renderer for the specified object type. - - - Syntactic sugar method that calls - with the type of the object parameter. - - - - - - Gets the renderer for the specified type - - the type to lookup the renderer for - the renderer for the specified type - - - Returns the renderer for the specified type. - If no specific renderer has been defined the - will be returned. - - - - - - Internal function to recursively search interfaces - - the type to lookup the renderer for - the renderer for the specified type - - - - Clear the map of renderers - - - - Clear the custom renderers defined by using - . The - cannot be removed. - - - - - - Register an for . - - the type that will be rendered by - the renderer for - - - Register an object renderer for a specific source type. - This renderer will be returned from a call to - specifying the same as an argument. - - - - - - Get the default renderer instance - - the default renderer - - - Get the default renderer - - - - - - Interface implemented by logger repository plugins. - - - - Plugins define additional behavior that can be associated - with a . - The held by the - property is used to store the plugins for a repository. - - - The log4net.Config.PluginAttribute can be used to - attach plugins to repositories created using configuration - attributes. - - - Nicko Cadell - Gert Driesen - - - - Attaches the plugin to the specified . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - This method is called to notify the plugin that - it should stop operating and should detach from - the repository. - - - - - - Gets the name of the plugin. - - - The name of the plugin. - - - - Plugins are stored in the - keyed by name. Each plugin instance attached to a - repository must be a unique name. - - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a PluginCollection instance. - - list to create a readonly wrapper arround - - A PluginCollection wrapper that is read-only. - - - - - Initializes a new instance of the PluginCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the PluginCollection class - that has the specified initial capacity. - - - The number of elements that the new PluginCollection is initially capable of storing. - - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified PluginCollection. - - The PluginCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - - Copies the entire PluginCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire PluginCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the PluginCollection. - - The to be added to the end of the PluginCollection. - The index at which the value has been added. - - - - Removes all elements from the PluginCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the PluginCollection. - - The to check for. - true if is found in the PluginCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the PluginCollection. - - The to locate in the PluginCollection. - - The zero-based index of the first occurrence of - in the entire PluginCollection, if found; otherwise, -1. - - - - - Inserts an element into the PluginCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the PluginCollection. - - The to remove from the PluginCollection. - - The specified was not found in the PluginCollection. - - - - - Removes the element at the specified index of the PluginCollection. - - The zero-based index of the element to remove. - - is less than zero. - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the PluginCollection. - - An for the entire PluginCollection. - - - - Adds the elements of another PluginCollection to the current PluginCollection. - - The PluginCollection whose elements should be added to the end of the current PluginCollection. - The new of the PluginCollection. - - - - Adds the elements of a array to the current PluginCollection. - - The array whose elements should be added to the end of the PluginCollection. - The new of the PluginCollection. - - - - Adds the elements of a collection to the current PluginCollection. - - The collection whose elements should be added to the end of the PluginCollection. - The new of the PluginCollection. - - - - Sets the capacity to the actual number of elements. - - - - - is less than zero. - -or- - is equal to or greater than . - - - - - is less than zero. - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the PluginCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - An object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - - The at the specified index. - - The zero-based index of the element to get or set. - - is less than zero. - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false. - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false. - - - - Gets or sets the number of elements the PluginCollection can contain. - - - The number of elements the PluginCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - - A value - - - - - Supports simple iteration over a . - - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - The current element in the collection. - - - - - - - - Map of repository plugins. - - - - This class is a name keyed map of the plugins that are - attached to a repository. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The repository that the plugins should be attached to. - - - Initialize a new instance of the class with a - repository that the plugins should be attached to. - - - - - - Adds a to the map. - - The to add to the map. - - - The will be attached to the repository when added. - - - If there already exists a plugin with the same name - attached to the repository then the old plugin will - be and replaced with - the new plugin. - - - - - - Removes a from the map. - - The to remove from the map. - - - Remove a specific plugin from this map. - - - - - - Gets a by name. - - The name of the to lookup. - - The from the map with the name specified, or - null if no plugin is found. - - - - Lookup a plugin by name. If the plugin is not found null - will be returned. - - - - - - Gets all possible plugins as a list of objects. - - All possible plugins as a list of objects. - - - Get a collection of all the plugins defined in this map. - - - - - - Base implementation of - - - - Default abstract implementation of the - interface. This base class can be used by implementors - of the interface. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - the name of the plugin - - Initializes a new Plugin with the specified name. - - - - - Attaches this plugin to a . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - This method is called to notify the plugin that - it should stop operating and should detach from - the repository. - - - - - - The name of this plugin. - - - - - The repository this plugin is attached to. - - - - - Gets or sets the name of the plugin. - - - The name of the plugin. - - - - Plugins are stored in the - keyed by name. Each plugin instance attached to a - repository must be a unique name. - - - The name of the plugin must not change one the - plugin has been attached to a repository. - - - - - - The repository for this plugin - - - The that this plugin is attached to. - - - - Gets or sets the that this plugin is - attached to. - - - - - - Plugin that listens for events from the - - - - This plugin publishes an instance of - on a specified . This listens for logging events delivered from - a remote . - - - When an event is received it is relogged within the attached repository - as if it had been raised locally. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Initializes a new instance of the class. - - - The property must be set. - - - - - - Construct with sink Uri. - - The name to publish the sink under in the remoting infrastructure. - See for more details. - - - Initializes a new instance of the class - with specified name. - - - - - - Attaches this plugin to a . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - When the plugin is shutdown the remote logging - sink is disconnected. - - - - - - Gets or sets the URI of this sink. - - - The URI of this sink. - - - - This is the name under which the object is marshaled. - - - - - - - Delivers objects to a remote sink. - - - - Internal class used to listen for logging events - and deliver them to the local repository. - - - - - - Constructor - - The repository to log to. - - - Initializes a new instance of the for the - specified . - - - - - - Logs the events to the repository. - - The events to log. - - - The events passed are logged to the - - - - - - Obtains a lifetime service object to control the lifetime - policy for this instance. - - null to indicate that this instance should live forever. - - - Obtains a lifetime service object to control the lifetime - policy for this instance. This object should live forever - therefore this implementation returns null. - - - - - - The underlying that events should - be logged to. - - - - - Default implementation of - - - - This default implementation of the - interface is used to create the default subclass - of the object. - - - Nicko Cadell - Gert Driesen - - - - Interface abstracts creation of instances - - - - This interface is used by the to - create new objects. - - - The method is called - to create a named . - - - Implement this interface to create new subclasses of . - - - Nicko Cadell - Gert Driesen - - - - Create a new instance - - The name of the . - The instance for the specified name. - - - Create a new instance with the - specified name. - - - Called by the to create - new named instances. - - - If the is null then the root logger - must be returned. - - - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Create a new instance - - The name of the . - The instance for the specified name. - - - Create a new instance with the - specified name. - - - Called by the to create - new named instances. - - - If the is null then the root logger - must be returned. - - - - - - Default internal subclass of - - - - This subclass has no additional behavior over the - class but does allow instances - to be created. - - - - - - Implementation of used by - - - - Internal class used to provide implementation of - interface. Applications should use to get - logger instances. - - - This is one of the central classes in the log4net implementation. One of the - distinctive features of log4net are hierarchical loggers and their - evaluation. The organizes the - instances into a rooted tree hierarchy. - - - The class is abstract. Only concrete subclasses of - can be created. The - is used to create instances of this type for the . - - - Nicko Cadell - Gert Driesen - Aspi Havewala - Douglas de la Torre - - - - This constructor created a new instance and - sets its name. - - The name of the . - - - This constructor is protected and designed to be used by - a subclass that is not abstract. - - - Loggers are constructed by - objects. See for the default - logger creator. - - - - - - Add to the list of appenders of this - Logger instance. - - An appender to add to this logger - - - Add to the list of appenders of this - Logger instance. - - - If is already in the list of - appenders, then it won't be added again. - - - - - - Look for the appender named as name - - The name of the appender to lookup - The appender with the name specified, or null. - - - Returns the named appender, or null if the appender is not found. - - - - - - Remove all previously added appenders from this Logger instance. - - - - Remove all previously added appenders from this Logger instance. - - - This is useful when re-reading configuration information. - - - - - - Remove the appender passed as parameter form the list of appenders. - - The appender to remove - The appender removed from the list - - - Remove the appender passed as parameter form the list of appenders. - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Remove the appender passed as parameter form the list of appenders. - - The name of the appender to remove - The appender removed from the list - - - Remove the named appender passed as parameter form the list of appenders. - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - This generic form is intended to be used by wrappers. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generate a logging event for the specified using - the and . - - - This method must not throw any exception to the caller. - - - - - - This is the most generic printing method that is intended to be used - by wrappers. - - The event being logged. - - - Logs the specified logging event through this logger. - - - This method must not throw any exception to the caller. - - - - - - Checks if this logger is enabled for a given passed as parameter. - - The level to check. - - true if this logger is enabled for level, otherwise false. - - - - Test if this logger is going to log events of the specified . - - - This method must not throw any exception to the caller. - - - - - - Deliver the to the attached appenders. - - The event to log. - - - Call the appenders in the hierarchy starting at - this. If no appenders could be found, emit a - warning. - - - This method calls all the appenders inherited from the - hierarchy circumventing any evaluation of whether to log or not - to log the particular log request. - - - - - - Closes all attached appenders implementing the interface. - - - - Used to ensure that the appenders are correctly shutdown. - - - - - - This is the most generic printing method. This generic form is intended to be used by wrappers - - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generate a logging event for the specified using - the . - - - - - - Creates a new logging event and logs the event without further checks. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generates a logging event and delivers it to the attached - appenders. - - - - - - Creates a new logging event and logs the event without further checks. - - The event being logged. - - - Delivers the logging event to the attached appenders. - - - - - - The fully qualified type of the Logger class. - - - - - The name of this logger. - - - - - The assigned level of this logger. - - - - The level variable need not be - assigned a value in which case it is inherited - form the hierarchy. - - - - - - The parent of this logger. - - - - The parent of this logger. - All loggers have at least one ancestor which is the root logger. - - - - - - Loggers need to know what Hierarchy they are in. - - - - Loggers need to know what Hierarchy they are in. - The hierarchy that this logger is a member of is stored - here. - - - - - - Helper implementation of the interface - - - - - Flag indicating if child loggers inherit their parents appenders - - - - Additivity is set to true by default, that is children inherit - the appenders of their ancestors by default. If this variable is - set to false then the appenders found in the - ancestors of this logger are not used. However, the children - of this logger will inherit its appenders, unless the children - have their additivity flag set to false too. See - the user manual for more details. - - - - - - Lock to protect AppenderAttachedImpl variable m_appenderAttachedImpl - - - - - Gets or sets the parent logger in the hierarchy. - - - The parent logger in the hierarchy. - - - - Part of the Composite pattern that makes the hierarchy. - The hierarchy is parent linked rather than child linked. - - - - - - Gets or sets a value indicating if child loggers inherit their parent's appenders. - - - true if child loggers inherit their parent's appenders. - - - - Additivity is set to true by default, that is children inherit - the appenders of their ancestors by default. If this variable is - set to false then the appenders found in the - ancestors of this logger are not used. However, the children - of this logger will inherit its appenders, unless the children - have their additivity flag set to false too. See - the user manual for more details. - - - - - - Gets the effective level for this logger. - - The nearest level in the logger hierarchy. - - - Starting from this logger, searches the logger hierarchy for a - non-null level and returns it. Otherwise, returns the level of the - root logger. - - The Logger class is designed so that this method executes as - quickly as possible. - - - - - Gets or sets the where this - Logger instance is attached to. - - The hierarchy that this logger belongs to. - - - This logger must be attached to a single . - - - - - - Gets or sets the assigned , if any, for this Logger. - - - The of this logger. - - - - The assigned can be null. - - - - - - Get the appenders contained in this logger as an - . - - A collection of the appenders in this logger - - - Get the appenders contained in this logger as an - . If no appenders - can be found, then a is returned. - - - - - - Gets the logger name. - - - The name of the logger. - - - - The name of this logger - - - - - - Gets the where this - Logger instance is attached to. - - - The that this logger belongs to. - - - - Gets the where this - Logger instance is attached to. - - - - - - Construct a new Logger - - the name of the logger - - - Initializes a new instance of the class - with the specified name. - - - - - - Delegate used to handle logger creation event notifications. - - The in which the has been created. - The event args that hold the instance that has been created. - - - Delegate used to handle logger creation event notifications. - - - - - - Provides data for the event. - - - - A event is raised every time a - is created. - - - - - - The created - - - - - Constructor - - The that has been created. - - - Initializes a new instance of the event argument - class,with the specified . - - - - - - Gets the that has been created. - - - The that has been created. - - - - The that has been created. - - - - - - Hierarchical organization of loggers - - - - The casual user should not have to deal with this class - directly. - - - This class is specialized in retrieving loggers by name and - also maintaining the logger hierarchy. Implements the - interface. - - - The structure of the logger hierarchy is maintained by the - method. The hierarchy is such that children - link to their parent but parents do not have any references to their - children. Moreover, loggers can be instantiated in any order, in - particular descendant before ancestor. - - - In case a descendant is created before a particular ancestor, - then it creates a provision node for the ancestor and adds itself - to the provision node. Other descendants of the same ancestor add - themselves to the previously created provision node. - - - Nicko Cadell - Gert Driesen - - - - Base implementation of - - - - Default abstract implementation of the interface. - - - Skeleton implementation of the interface. - All types can extend this type. - - - Nicko Cadell - Gert Driesen - - - - Interface implemented by logger repositories. - - - - This interface is implemented by logger repositories. e.g. - . - - - This interface is used by the - to obtain interfaces. - - - Nicko Cadell - Gert Driesen - - - - Check if the named logger exists in the repository. If so return - its reference, otherwise returns null. - - The name of the logger to lookup - The Logger object with the name specified - - - If the names logger exists it is returned, otherwise - null is returned. - - - - - - Returns all the currently defined loggers as an Array. - - All the defined loggers - - - Returns all the currently defined loggers as an Array. - - - - - - Returns a named logger instance - - The name of the logger to retrieve - The logger object with the name specified - - - Returns a named logger instance. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - - - Shutdown the repository - - - Shutting down a repository will safely close and remove - all appenders in all loggers including the root logger. - - - Some appenders need to be closed before the - application exists. Otherwise, pending logging events might be - lost. - - - The method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Reset the repositories configuration to a default state - - - - Reset all values contained in this instance to their - default state. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the through this repository. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are configured as an Array. - - All the Appenders - - - Returns all the Appenders that are configured as an Array. - - - - - - The name of the repository - - - The name of the repository - - - - The name of the repository. - - - - - - RendererMap accesses the object renderer map for this repository. - - - RendererMap accesses the object renderer map for this repository. - - - - RendererMap accesses the object renderer map for this repository. - - - The RendererMap holds a mapping between types and - objects. - - - - - - The plugin map for this repository. - - - The plugin map for this repository. - - - - The plugin map holds the instances - that have been attached to this repository. - - - - - - Get the level map for the Repository. - - - - Get the level map for the Repository. - - - The level map defines the mappings between - level names and objects in - this repository. - - - - - - The threshold for all events in this repository - - - The threshold for all events in this repository - - - - The threshold for all events in this repository. - - - - - - Flag indicates if this repository has been configured. - - - Flag indicates if this repository has been configured. - - - - Flag indicates if this repository has been configured. - - - - - - Event to notify that the repository has been shutdown. - - - Event to notify that the repository has been shutdown. - - - - Event raised when the repository has been shutdown. - - - - - - Event to notify that the repository has had its configuration reset. - - - Event to notify that the repository has had its configuration reset. - - - - Event raised when the repository's configuration has been - reset to default. - - - - - - Event to notify that the repository has had its configuration changed. - - - Event to notify that the repository has had its configuration changed. - - - - Event raised when the repository's configuration has been changed. - - - - - - Repository specific properties - - - Repository specific properties - - - - These properties can be specified on a repository specific basis. - - - - - - Default Constructor - - - - Initializes the repository with default (empty) properties. - - - - - - Construct the repository using specific properties - - the properties to set for this repository - - - Initializes the repository with specified properties. - - - - - - Test if logger exists - - The name of the logger to lookup - The Logger object with the name specified - - - Check if the named logger exists in the repository. If so return - its reference, otherwise returns null. - - - - - - Returns all the currently defined loggers in the repository - - All the defined loggers - - - Returns all the currently defined loggers in the repository as an Array. - - - - - - Return a new logger instance - - The name of the logger to retrieve - The logger object with the name specified - - - Return a new logger instance. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - - - - Shutdown the repository - - - - Shutdown the repository. Can be overridden in a subclass. - This base class implementation notifies the - listeners and all attached plugins of the shutdown event. - - - - - - Reset the repositories configuration to a default state - - - - Reset all values contained in this instance to their - default state. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the logEvent through this repository. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are configured as an Array. - - All the Appenders - - - Returns all the Appenders that are configured as an Array. - - - - - - Adds an object renderer for a specific class. - - The type that will be rendered by the renderer supplied. - The object renderer used to render the object. - - - Adds an object renderer for a specific class. - - - - - - Notify the registered listeners that the repository is shutting down - - Empty EventArgs - - - Notify any listeners that this repository is shutting down. - - - - - - Notify the registered listeners that the repository has had its configuration reset - - Empty EventArgs - - - Notify any listeners that this repository's configuration has been reset. - - - - - - Notify the registered listeners that the repository has had its configuration changed - - Empty EventArgs - - - Notify any listeners that this repository's configuration has changed. - - - - - - Raise a configuration changed event on this repository - - EventArgs.Empty - - - Applications that programmatically change the configuration of the repository should - raise this event notification to notify listeners. - - - - - - The name of the repository - - - The string name of the repository - - - - The name of this repository. The name is - used to store and lookup the repositories - stored by the . - - - - - - The threshold for all events in this repository - - - The threshold for all events in this repository - - - - The threshold for all events in this repository - - - - - - RendererMap accesses the object renderer map for this repository. - - - RendererMap accesses the object renderer map for this repository. - - - - RendererMap accesses the object renderer map for this repository. - - - The RendererMap holds a mapping between types and - objects. - - - - - - The plugin map for this repository. - - - The plugin map for this repository. - - - - The plugin map holds the instances - that have been attached to this repository. - - - - - - Get the level map for the Repository. - - - - Get the level map for the Repository. - - - The level map defines the mappings between - level names and objects in - this repository. - - - - - - Flag indicates if this repository has been configured. - - - Flag indicates if this repository has been configured. - - - - Flag indicates if this repository has been configured. - - - - - - Event to notify that the repository has been shutdown. - - - Event to notify that the repository has been shutdown. - - - - Event raised when the repository has been shutdown. - - - - - - Event to notify that the repository has had its configuration reset. - - - Event to notify that the repository has had its configuration reset. - - - - Event raised when the repository's configuration has been - reset to default. - - - - - - Event to notify that the repository has had its configuration changed. - - - Event to notify that the repository has had its configuration changed. - - - - Event raised when the repository's configuration has been changed. - - - - - - Repository specific properties - - - Repository specific properties - - - These properties can be specified on a repository specific basis - - - - - Basic Configurator interface for repositories - - - - Interface used by basic configurator to configure a - with a default . - - - A should implement this interface to support - configuration by the . - - - Nicko Cadell - Gert Driesen - - - - Initialize the repository using the specified appender - - the appender to use to log all logging events - - - Configure the repository to route all logging events to the - specified appender. - - - - - - Configure repository using XML - - - - Interface used by Xml configurator to configure a . - - - A should implement this interface to support - configuration by the . - - - Nicko Cadell - Gert Driesen - - - - Initialize the repository using the specified config - - the element containing the root of the config - - - The schema for the XML configuration data is defined by - the implementation. - - - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Construct with properties - - The properties to pass to this repository. - - - Initializes a new instance of the class. - - - - - - Construct with a logger factory - - The factory to use to create new logger instances. - - - Initializes a new instance of the class with - the specified . - - - - - - Construct with properties and a logger factory - - The properties to pass to this repository. - The factory to use to create new logger instances. - - - Initializes a new instance of the class with - the specified . - - - - - - Test if a logger exists - - The name of the logger to lookup - The Logger object with the name specified - - - Check if the named logger exists in the hierarchy. If so return - its reference, otherwise returns null. - - - - - - Returns all the currently defined loggers in the hierarchy as an Array - - All the defined loggers - - - Returns all the currently defined loggers in the hierarchy as an Array. - The root logger is not included in the returned - enumeration. - - - - - - Return a new logger instance named as the first parameter using - the default factory. - - - - Return a new logger instance named as the first parameter using - the default factory. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - The name of the logger to retrieve - The logger object with the name specified - - - - Shutting down a hierarchy will safely close and remove - all appenders in all loggers including the root logger. - - - - Shutting down a hierarchy will safely close and remove - all appenders in all loggers including the root logger. - - - Some appenders need to be closed before the - application exists. Otherwise, pending logging events might be - lost. - - - The Shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Reset all values contained in this hierarchy instance to their default. - - - - Reset all values contained in this hierarchy instance to their - default. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the logEvent through this hierarchy. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are currently configured - - An array containing all the currently configured appenders - - - Returns all the instances that are currently configured. - All the loggers are searched for appenders. The appenders may also be containers - for appenders and these are also searched for additional loggers. - - - The list returned is unordered but does not contain duplicates. - - - - - - Collect the appenders from an . - The appender may also be a container. - - - - - - - Collect the appenders from an container - - - - - - - Initialize the log4net system using the specified appender - - the appender to use to log all logging events - - - - Initialize the log4net system using the specified appender - - the appender to use to log all logging events - - - This method provides the same functionality as the - method implemented - on this object, but it is protected and therefore can be called by subclasses. - - - - - - Initialize the log4net system using the specified config - - the element containing the root of the config - - - - Initialize the log4net system using the specified config - - the element containing the root of the config - - - This method provides the same functionality as the - method implemented - on this object, but it is protected and therefore can be called by subclasses. - - - - - - Test if this hierarchy is disabled for the specified . - - The level to check against. - - true if the repository is disabled for the level argument, false otherwise. - - - - If this hierarchy has not been configured then this method will - always return true. - - - This method will return true if this repository is - disabled for level object passed as parameter and - false otherwise. - - - See also the property. - - - - - - Clear all logger definitions from the internal hashtable - - - - This call will clear all logger definitions from the internal - hashtable. Invoking this method will irrevocably mess up the - logger hierarchy. - - - You should really know what you are doing before - invoking this method. - - - - - - Return a new logger instance named as the first parameter using - . - - The name of the logger to retrieve - The factory that will make the new logger instance - The logger object with the name specified - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated by the - parameter and linked with its existing - ancestors as well as children. - - - - - - Sends a logger creation event to all registered listeners - - The newly created logger - - Raises the logger creation event. - - - - - Updates all the parents of the specified logger - - The logger to update the parents for - - - This method loops through all the potential parents of - . There 3 possible cases: - - - - No entry for the potential parent of exists - - We create a ProvisionNode for this potential - parent and insert in that provision node. - - - - The entry is of type Logger for the potential parent. - - The entry is 's nearest existing parent. We - update 's parent field with this entry. We also break from - he loop because updating our parent's parent is our parent's - responsibility. - - - - The entry is of type ProvisionNode for this potential parent. - - We add to the list of children for this - potential parent. - - - - - - - - Replace a with a in the hierarchy. - - - - - - We update the links for all the children that placed themselves - in the provision node 'pn'. The second argument 'log' is a - reference for the newly created Logger, parent of all the - children in 'pn'. - - - We loop on all the children 'c' in 'pn'. - - - If the child 'c' has been already linked to a child of - 'log' then there is no need to update 'c'. - - - Otherwise, we set log's parent field to c's parent and set - c's parent field to log. - - - - - - Define or redefine a Level using the values in the argument - - the level values - - - Define or redefine a Level using the values in the argument - - - Supports setting levels via the configuration file. - - - - - - Set a Property using the values in the argument - - the property value - - - Set a Property using the values in the argument. - - - Supports setting property values via the configuration file. - - - - - - Event used to notify that a logger has been created. - - - - Event raised when a logger is created. - - - - - - Has no appender warning been emitted - - - - Flag to indicate if we have already issued a warning - about not having an appender warning. - - - - - - Get the root of this hierarchy - - - - Get the root of this hierarchy. - - - - - - Gets or sets the default instance. - - The default - - - The logger factory is used to create logger instances. - - - - - - A class to hold the value, name and display name for a level - - - - A class to hold the value, name and display name for a level - - - - - - Override Object.ToString to return sensible debug info - - string info about this object - - - - Value of the level - - - - If the value is not set (defaults to -1) the value will be looked - up for the current level with the same name. - - - - - - Name of the level - - - The name of the level - - - - The name of the level. - - - - - - Display name for the level - - - The display name of the level - - - - The display name of the level. - - - - - - A class to hold the key and data for a property set in the config file - - - - A class to hold the key and data for a property set in the config file - - - - - - Override Object.ToString to return sensible debug info - - string info about this object - - - - Property Key - - - Property Key - - - - Property Key. - - - - - - Property Value - - - Property Value - - - - Property Value. - - - - - - Used internally to accelerate hash table searches. - - - - Internal class used to improve performance of - string keyed hashtables. - - - The hashcode of the string is cached for reuse. - The string is stored as an interned value. - When comparing two objects for equality - the reference equality of the interned strings is compared. - - - Nicko Cadell - Gert Driesen - - - - Construct key with string name - - - - Initializes a new instance of the class - with the specified name. - - - Stores the hashcode of the string and interns - the string key to optimize comparisons. - - - The Compact Framework 1.0 the - method does not work. On the Compact Framework - the string keys are not interned nor are they - compared by reference. - - - The name of the logger. - - - - Returns a hash code for the current instance. - - A hash code for the current instance. - - - Returns the cached hashcode. - - - - - - Determines whether two instances - are equal. - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - Compares the references of the interned strings. - - - - - - Provision nodes are used where no logger instance has been specified - - - - instances are used in the - when there is no specified - for that node. - - - A provision node holds a list of child loggers on behalf of - a logger that does not exist. - - - Nicko Cadell - Gert Driesen - - - - Create a new provision node with child node - - A child logger to add to this node. - - - Initializes a new instance of the class - with the specified child logger. - - - - - - The sits at the root of the logger hierarchy tree. - - - - The is a regular except - that it provides several guarantees. - - - First, it cannot be assigned a null - level. Second, since the root logger cannot have a parent, the - property always returns the value of the - level field without walking the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Construct a - - The level to assign to the root logger. - - - Initializes a new instance of the class with - the specified logging level. - - - The root logger names itself as "root". However, the root - logger cannot be retrieved by name. - - - - - - Gets the assigned level value without walking the logger hierarchy. - - The assigned level value without walking the logger hierarchy. - - - Because the root logger cannot have a parent and its level - must not be null this property just returns the - value of . - - - - - - Gets or sets the assigned for the root logger. - - - The of the root logger. - - - - Setting the level of the root logger to a null reference - may have catastrophic results. We prevent this here. - - - - - - Initializes the log4net environment using an XML DOM. - - - - Configures a using an XML DOM. - - - Nicko Cadell - Gert Driesen - - - - Construct the configurator for a hierarchy - - The hierarchy to build. - - - Initializes a new instance of the class - with the specified . - - - - - - Configure the hierarchy by parsing a DOM tree of XML elements. - - The root element to parse. - - - Configure the hierarchy by parsing a DOM tree of XML elements. - - - - - - Parse appenders by IDREF. - - The appender ref element. - The instance of the appender that the ref refers to. - - - Parse an XML element that represents an appender and return - the appender. - - - - - - Parses an appender element. - - The appender element. - The appender instance or null when parsing failed. - - - Parse an XML element that represents an appender and return - the appender instance. - - - - - - Parses a logger element. - - The logger element. - - - Parse an XML element that represents a logger. - - - - - - Parses the root logger element. - - The root element. - - - Parse an XML element that represents the root logger. - - - - - - Parses the children of a logger element. - - The category element. - The logger instance. - Flag to indicate if the logger is the root logger. - - - Parse the child elements of a <logger> element. - - - - - - Parses an object renderer. - - The renderer element. - - - Parse an XML element that represents a renderer. - - - - - - Parses a level element. - - The level element. - The logger object to set the level on. - Flag to indicate if the logger is the root logger. - - - Parse an XML element that represents a level. - - - - - - Sets a parameter on an object. - - The parameter element. - The object to set the parameter on. - - The parameter name must correspond to a writable property - on the object. The value of the parameter is a string, - therefore this function will attempt to set a string - property first. If unable to set a string property it - will inspect the property and its argument type. It will - attempt to call a static method called Parse on the - type of the property. This method will take a single - string argument and return a value that can be used to - set the property. - - - - - Test if an element has no attributes or child elements - - the element to inspect - true if the element has any attributes or child elements, false otherwise - - - - Test if a is constructible with Activator.CreateInstance. - - the type to inspect - true if the type is creatable using a default constructor, false otherwise - - - - Look for a method on the that matches the supplied - - the type that has the method - the name of the method - the method info found - - - The method must be a public instance method on the . - The method must be named or "Add" followed by . - The method must take a single parameter. - - - - - - Converts a string value to a target type. - - The type of object to convert the string to. - The string value to use as the value of the object. - - - An object of type with value or - null when the conversion could not be performed. - - - - - - Creates an object as specified in XML. - - The XML element that contains the definition of the object. - The object type to use if not explicitly specified. - The type that the returned object must be or must inherit from. - The object or null - - - Parse an XML element and create an object instance based on the configuration - data. - - - The type of the instance may be specified in the XML. If not - specified then the is used - as the type. However the type is specified it must support the - type. - - - - - - key: appenderName, value: appender. - - - - - The Hierarchy being configured. - - - - - Delegate used to handle logger repository shutdown event notifications - - The that is shutting down. - Empty event args - - - Delegate used to handle logger repository shutdown event notifications. - - - - - - Delegate used to handle logger repository configuration reset event notifications - - The that has had its configuration reset. - Empty event args - - - Delegate used to handle logger repository configuration reset event notifications. - - - - - - Delegate used to handle event notifications for logger repository configuration changes. - - The that has had its configuration changed. - Empty event arguments. - - - Delegate used to handle event notifications for logger repository configuration changes. - - - - - - Write the name of the current AppDomain to the output - - - - Write the name of the current AppDomain to the output writer - - - Nicko Cadell - - - - Write the name of the current AppDomain to the output - - the writer to write to - null, state is not set - - - Writes name of the current AppDomain to the output . - - - - - - Write the current date to the output - - - - Date pattern converter, uses a to format - the current date and time to the writer as a string. - - - The value of the determines - the formatting of the date. The following values are allowed: - - - Option value - Output - - - ISO8601 - - Uses the formatter. - Formats using the "yyyy-MM-dd HH:mm:ss,fff" pattern. - - - - DATE - - Uses the formatter. - Formats using the "dd MMM yyyy HH:mm:ss,fff" for example, "06 Nov 1994 15:49:37,459". - - - - ABSOLUTE - - Uses the formatter. - Formats using the "HH:mm:ss,fff" for example, "15:49:37,459". - - - - other - - Any other pattern string uses the formatter. - This formatter passes the pattern string to the - method. - For details on valid patterns see - DateTimeFormatInfo Class. - - - - - - The date and time is in the local time zone and is rendered in that zone. - To output the time in Universal time see . - - - Nicko Cadell - - - - The used to render the date to a string - - - - The used to render the date to a string - - - - - - Initialize the converter options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write the current date to the output - - that will receive the formatted result. - null, state is not set - - - Pass the current date and time to the - for it to render it to the writer. - - - The date and time passed is in the local time zone. - - - - - - Write an environment variable to the output - - - - Write an environment variable to the output writer. - The value of the determines - the name of the variable to output. - - - Nicko Cadell - - - - Write an environment variable to the output - - the writer to write to - null, state is not set - - - Writes the environment variable to the output . - The name of the environment variable to output must be set - using the - property. - - - - - - Write the current thread identity to the output - - - - Write the current thread identity to the output writer - - - Nicko Cadell - - - - Write the current thread identity to the output - - the writer to write to - null, state is not set - - - Writes the current thread identity to the output . - - - - - - Pattern converter for literal string instances in the pattern - - - - Writes the literal string value specified in the - property to - the output. - - - Nicko Cadell - - - - Set the next converter in the chain - - The next pattern converter in the chain - The next pattern converter - - - Special case the building of the pattern converter chain - for instances. Two adjacent - literals in the pattern can be represented by a single combined - pattern converter. This implementation detects when a - is added to the chain - after this converter and combines its value with this converter's - literal value. - - - - - - Write the literal to the output - - the writer to write to - null, not set - - - Override the formatting behavior to ignore the FormattingInfo - because we have a literal instead. - - - Writes the value of - to the output . - - - - - - Convert this pattern into the rendered message - - that will receive the formatted result. - null, not set - - - This method is not used. - - - - - - Writes a newline to the output - - - - Writes the system dependent line terminator to the output. - This behavior can be overridden by setting the : - - - - Option Value - Output - - - DOS - DOS or Windows line terminator "\r\n" - - - UNIX - UNIX line terminator "\n" - - - - Nicko Cadell - - - - Initialize the converter - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write the current process ID to the output - - - - Write the current process ID to the output writer - - - Nicko Cadell - - - - Write the current process ID to the output - - the writer to write to - null, state is not set - - - Write the current process ID to the output . - - - - - - Property pattern converter - - - - This pattern converter reads the thread and global properties. - The thread properties take priority over global properties. - See for details of the - thread properties. See for - details of the global properties. - - - If the is specified then that will be used to - lookup a single property. If no is specified - then all properties will be dumped as a list of key value pairs. - - - Nicko Cadell - - - - Write the property value to the output - - that will receive the formatted result. - null, state is not set - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - - - - A Pattern converter that generates a string of random characters - - - - The converter generates a string of random characters. By default - the string is length 4. This can be changed by setting the - to the string value of the length required. - - - The random characters in the string are limited to uppercase letters - and numbers only. - - - The random number generator used by this class is not cryptographically secure. - - - Nicko Cadell - - - - Shared random number generator - - - - - Length of random string to generate. Default length 4. - - - - - Initialize the converter options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write a randoim string to the output - - the writer to write to - null, state is not set - - - Write a randoim string to the output . - - - - - - Write the current threads username to the output - - - - Write the current threads username to the output writer - - - Nicko Cadell - - - - Write the current threads username to the output - - the writer to write to - null, state is not set - - - Write the current threads username to the output . - - - - - - Write the UTC date time to the output - - - - Date pattern converter, uses a to format - the current date and time in Universal time. - - - See the for details on the date pattern syntax. - - - - Nicko Cadell - - - - Write the current date and time to the output - - that will receive the formatted result. - null, state is not set - - - Pass the current date and time to the - for it to render it to the writer. - - - The date is in Universal time when it is rendered. - - - - - - - Type converter for Boolean. - - - - Supports conversion from string to bool type. - - - - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Convert the source object to the type supported by this object - - the object to convert - the converted object - - - Uses the method to convert the - argument to a . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Exception base type for conversion errors. - - - - This type extends . It - does not add any new functionality but does differentiate the - type of exception being thrown. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - A message to include with the exception. - - - Initializes a new instance of the class - with the specified message. - - - - - - Constructor - - A message to include with the exception. - A nested exception to include. - - - Initializes a new instance of the class - with the specified message and inner exception. - - - - - - Serialization constructor - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Creates a new instance of the class. - - The conversion destination type. - The value to convert. - An instance of the . - - - Creates a new instance of the class. - - - - - - Creates a new instance of the class. - - The conversion destination type. - The value to convert. - A nested exception to include. - An instance of the . - - - Creates a new instance of the class. - - - - - - Register of type converters for specific types. - - - - Maintains a registry of type converters used to convert between - types. - - - Use the and - methods to register new converters. - The and methods - lookup appropriate converters to use. - - - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - Initializes a new instance of the class. - - - - - Static constructor. - - - - This constructor defines the intrinsic type converters. - - - - - - Adds a converter for a specific type. - - The type being converted to. - The type converter to use to convert to the destination type. - - - Adds a converter instance for a specific type. - - - - - - Adds a converter for a specific type. - - The type being converted to. - The type of the type converter to use to convert to the destination type. - - - Adds a converter for a specific type. - - - - - - Gets the type converter to use to convert values to the destination type. - - The type being converted from. - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - Gets the type converter to use to convert values to the destination type. - - - - - - Gets the type converter to use to convert values to the destination type. - - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - Gets the type converter to use to convert values to the destination type. - - - - - - Lookups the type converter to use as specified by the attributes on the - destination type. - - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - - Creates the instance of the type converter. - - The type of the type converter. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - The type specified for the type converter must implement - the or interfaces - and must have a public default (no argument) constructor. - - - - - - Mapping from to type converter. - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to an encoding - the encoding - - - Uses the method to - convert the argument to an . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Interface supported by type converters - - - - This interface supports conversion from a single type to arbitrary types. - See . - - - Nicko Cadell - - - - Returns whether this converter can convert the object to the specified type - - A Type that represents the type you want to convert to - true if the conversion is possible - - - Test if the type supported by this converter can be converted to the - . - - - - - - Converts the given value object to the specified type, using the arguments - - the object to convert - The Type to convert the value parameter to - the converted object - - - Converts the (which must be of the type supported - by this converter) to the specified.. - - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to an IPAddress - the IPAddress - - - Uses the method to convert the - argument to an . - If that fails then the string is resolved as a DNS hostname. - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Valid characters in an IPv4 or IPv6 address string. (Does not support subnets) - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - The string is used as the - of the . - - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a PatternLayout - the PatternLayout - - - Creates and returns a new using - the as the - . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Convert between string and - - - - Supports conversion from string to type, - and from a type to a string. - - - The string is used as the - of the . - - - - - - Nicko Cadell - - - - Can the target type be converted to the type supported by this object - - A that represents the type you want to convert to - true if the conversion is possible - - - Returns true if the is - assignable from a type. - - - - - - Converts the given value object to the specified type, using the arguments - - the object to convert - The Type to convert the value parameter to - the converted object - - - Uses the method to convert the - argument to a . - - - - The object cannot be converted to the - . To check for this condition use the - method. - - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a PatternString - the PatternString - - - Creates and returns a new using - the as the - . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a Type - the Type - - - Uses the method to convert the - argument to a . - Additional effort is made to locate partially specified types - by searching the loaded assemblies. - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Attribute used to associate a type converter - - - - Class and Interface level attribute that specifies a type converter - to use with the associated type. - - - To associate a type converter with a target type apply a - TypeConverterAttribute to the target type. Specify the - type of the type converter on the attribute. - - - Nicko Cadell - Gert Driesen - - - - The string type name of the type converter - - - - - Default constructor - - - - Default constructor - - - - - - Create a new type converter attribute for the specified type name - - The string type name of the type converter - - - The type specified must implement the - or the interfaces. - - - - - - Create a new type converter attribute for the specified type - - The type of the type converter - - - The type specified must implement the - or the interfaces. - - - - - - The string type name of the type converter - - - The string type name of the type converter - - - - The type specified must implement the - or the interfaces. - - - - - - A straightforward implementation of the interface. - - - - This is the default implementation of the - interface. Implementors of the interface - should aggregate an instance of this type. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Append on on all attached appenders. - - The event being logged. - The number of appenders called. - - - Calls the method on all - attached appenders. - - - - - - Append on on all attached appenders. - - The array of events being logged. - The number of appenders called. - - - Calls the method on all - attached appenders. - - - - - - Calls the DoAppende method on the with - the objects supplied. - - The appender - The events - - - If the supports the - interface then the will be passed - through using that interface. Otherwise the - objects in the array will be passed one at a time. - - - - - - Attaches an appender. - - The appender to add. - - - If the appender is already in the list it won't be added again. - - - - - - Gets an attached appender with the specified name. - - The name of the appender to get. - - The appender with the name specified, or null if no appender with the - specified name is found. - - - - Lookup an attached appender by name. - - - - - - Removes all attached appenders. - - - - Removes and closes all attached appenders - - - - - - Removes the specified appender from the list of attached appenders. - - The appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - List of appenders - - - - - Array of appenders, used to cache the m_appenderList - - - - - Gets all attached appenders. - - - A collection of attached appenders, or null if there - are no attached appenders. - - - - The read only collection of all currently attached appenders. - - - - - - This class aggregates several PropertiesDictionary collections together. - - - - Provides a dictionary style lookup over an ordered list of - collections. - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Add a Properties Dictionary to this composite collection - - the properties to add - - - Properties dictionaries added first take precedence over dictionaries added - later. - - - - - - Flatten this composite collection into a single properties dictionary - - the flattened dictionary - - - Reduces the collection of ordered dictionaries to a single dictionary - containing the resultant values for the keys. - - - - - - Gets the value of a property - - - The value for the property with the specified key - - - - Looks up the value for the specified. - The collections are searched - in the order in which they were added to this collection. The value - returned is the value held by the first collection that contains - the specified key. - - - If none of the collections contain the specified key then - null is returned. - - - - - - Base class for Context Properties implementations - - - - This class defines a basic property get set accessor - - - Nicko Cadell - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Subclass of that maintains a count of - the number of bytes written. - - - - This writer counts the number of bytes written. - - - Nicko Cadell - Gert Driesen - - - - that does not leak exceptions - - - - does not throw exceptions when things go wrong. - Instead, it delegates error handling to its . - - - Nicko Cadell - Gert Driesen - - - - Adapter that extends and forwards all - messages to an instance of . - - - - Adapter that extends and forwards all - messages to an instance of . - - - Nicko Cadell - - - - The writer to forward messages to - - - - - Create an instance of that forwards all - messages to a . - - The to forward to - - - Create an instance of that forwards all - messages to a . - - - - - - Closes the writer and releases any system resources associated with the writer - - - - - - - - - Dispose this writer - - flag indicating if we are being disposed - - - Dispose this writer - - - - - - Flushes any buffered output - - - - Clears all buffers for the writer and causes any buffered data to be written - to the underlying device - - - - - - Writes a character to the wrapped TextWriter - - the value to write to the TextWriter - - - Writes a character to the wrapped TextWriter - - - - - - Writes a character buffer to the wrapped TextWriter - - the data buffer - the start index - the number of characters to write - - - Writes a character buffer to the wrapped TextWriter - - - - - - Writes a string to the wrapped TextWriter - - the value to write to the TextWriter - - - Writes a string to the wrapped TextWriter - - - - - - Gets or sets the underlying . - - - The underlying . - - - - Gets or sets the underlying . - - - - - - The Encoding in which the output is written - - - The - - - - The Encoding in which the output is written - - - - - - Gets an object that controls formatting - - - The format provider - - - - Gets an object that controls formatting - - - - - - Gets or sets the line terminator string used by the TextWriter - - - The line terminator to use - - - - Gets or sets the line terminator string used by the TextWriter - - - - - - Constructor - - the writer to actually write to - the error handler to report error to - - - Create a new QuietTextWriter using a writer and error handler - - - - - - Writes a character to the underlying writer - - the char to write - - - Writes a character to the underlying writer - - - - - - Writes a buffer to the underlying writer - - the buffer to write - the start index to write from - the number of characters to write - - - Writes a buffer to the underlying writer - - - - - - Writes a string to the output. - - The string data to write to the output. - - - Writes a string to the output. - - - - - - Closes the underlying output writer. - - - - Closes the underlying output writer. - - - - - - The error handler instance to pass all errors to - - - - - Flag to indicate if this writer is closed - - - - - Gets or sets the error handler that all errors are passed to. - - - The error handler that all errors are passed to. - - - - Gets or sets the error handler that all errors are passed to. - - - - - - Gets a value indicating whether this writer is closed. - - - true if this writer is closed, otherwise false. - - - - Gets a value indicating whether this writer is closed. - - - - - - Constructor - - The to actually write to. - The to report errors to. - - - Creates a new instance of the class - with the specified and . - - - - - - Writes a character to the underlying writer and counts the number of bytes written. - - the char to write - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Writes a buffer to the underlying writer and counts the number of bytes written. - - the buffer to write - the start index to write from - the number of characters to write - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Writes a string to the output and counts the number of bytes written. - - The string data to write to the output. - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Total number of bytes written. - - - - - Gets or sets the total number of bytes written. - - - The total number of bytes written. - - - - Gets or sets the total number of bytes written. - - - - - - A fixed size rolling buffer of logging events. - - - - An array backed fixed size leaky bucket. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The maximum number of logging events in the buffer. - - - Initializes a new instance of the class with - the specified maximum number of buffered logging events. - - - The argument is not a positive integer. - - - - Appends a to the buffer. - - The event to append to the buffer. - The event discarded from the buffer, if the buffer is full, otherwise null. - - - Append an event to the buffer. If the buffer still contains free space then - null is returned. If the buffer is full then an event will be dropped - to make space for the new event, the event dropped is returned. - - - - - - Get and remove the oldest event in the buffer. - - The oldest logging event in the buffer - - - Gets the oldest (first) logging event in the buffer and removes it - from the buffer. - - - - - - Pops all the logging events from the buffer into an array. - - An array of all the logging events in the buffer. - - - Get all the events in the buffer and clear the buffer. - - - - - - Clear the buffer - - - - Clear the buffer of all events. The events in the buffer are lost. - - - - - - Gets the th oldest event currently in the buffer. - - The th oldest event currently in the buffer. - - - If is outside the range 0 to the number of events - currently in the buffer, then null is returned. - - - - - - Gets the maximum size of the buffer. - - The maximum size of the buffer. - - - Gets the maximum size of the buffer - - - - - - Gets the number of logging events in the buffer. - - The number of logging events in the buffer. - - - This number is guaranteed to be in the range 0 to - (inclusive). - - - - - - An always empty . - - - - A singleton implementation of the - interface that always represents an empty collection. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Copies the elements of the to an - , starting at a particular Array index. - - The one-dimensional - that is the destination of the elements copied from - . The Array must have zero-based - indexing. - The zero-based index in array at which - copying begins. - - - As the collection is empty no values are copied into the array. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - The singleton instance of the empty collection. - - - - - Gets the singleton instance of the empty collection. - - The singleton instance of the empty collection. - - - Gets the singleton instance of the empty collection. - - - - - - Gets a value indicating if access to the is synchronized (thread-safe). - - - true if access to the is synchronized (thread-safe); otherwise, false. - - - - For the this property is always true. - - - - - - Gets the number of elements contained in the . - - - The number of elements contained in the . - - - - As the collection is empty the is always 0. - - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - As the collection is empty and thread safe and synchronized this instance is also - the object. - - - - - - An always empty . - - - - A singleton implementation of the - interface that always represents an empty collection. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Copies the elements of the to an - , starting at a particular Array index. - - The one-dimensional - that is the destination of the elements copied from - . The Array must have zero-based - indexing. - The zero-based index in array at which - copying begins. - - - As the collection is empty no values are copied into the array. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - Adds an element with the provided key and value to the - . - - The to use as the key of the element to add. - The to use as the value of the element to add. - - - As the collection is empty no new values can be added. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - Removes all elements from the . - - - - As the collection is empty no values can be removed. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - Determines whether the contains an element - with the specified key. - - The key to locate in the . - false - - - As the collection is empty the method always returns false. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - Removes the element with the specified key from the . - - The key of the element to remove. - - - As the collection is empty no values can be removed. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - The singleton instance of the empty dictionary. - - - - - Gets the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets a value indicating if access to the is synchronized (thread-safe). - - - true if access to the is synchronized (thread-safe); otherwise, false. - - - - For the this property is always true. - - - - - - Gets the number of elements contained in the - - - The number of elements contained in the . - - - - As the collection is empty the is always 0. - - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - As the collection is empty and thread safe and synchronized this instance is also - the object. - - - - - - Gets a value indicating whether the has a fixed size. - - true - - - As the collection is empty always returns true. - - - - - - Gets a value indicating whether the is read-only. - - true - - - As the collection is empty always returns true. - - - - - - Gets an containing the keys of the . - - An containing the keys of the . - - - As the collection is empty a is returned. - - - - - - Gets an containing the values of the . - - An containing the values of the . - - - As the collection is empty a is returned. - - - - - - Gets or sets the element with the specified key. - - The key of the element to get or set. - null - - - As the collection is empty no values can be looked up or stored. - If the index getter is called then null is returned. - A is thrown if the setter is called. - - - This dictionary is always empty and cannot be modified. - - - - Contain the information obtained when parsing formatting modifiers - in conversion modifiers. - - - - Holds the formatting information extracted from the format string by - the . This is used by the - objects when rendering the output. - - - Nicko Cadell - Gert Driesen - - - - Defaut Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - - - Initializes a new instance of the class - with the specified parameters. - - - - - - Gets or sets the minimum value. - - - The minimum value. - - - - Gets or sets the minimum value. - - - - - - Gets or sets the maximum value. - - - The maximum value. - - - - Gets or sets the maximum value. - - - - - - Gets or sets a flag indicating whether left align is enabled - or not. - - - A flag indicating whether left align is enabled or not. - - - - Gets or sets a flag indicating whether left align is enabled or not. - - - - - - Implementation of Properties collection for the - - - - This class implements a properties collection that is thread safe and supports both - storing properties and capturing a read only copy of the current propertied. - - - This class is optimized to the scenario where the properties are read frequently - and are modified infrequently. - - - Nicko Cadell - - - - The read only copy of the properties. - - - - This variable is declared volatile to prevent the compiler and JIT from - reordering reads and writes of this thread performed on different threads. - - - - - - Lock object used to synchronize updates within this instance - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property from the global context - - the key for the entry to remove - - - Removing an entry from the global context properties is relatively expensive compared - with reading a value. - - - - - - Clear the global context properties - - - - - Get a readonly immutable copy of the properties - - the current global context properties - - - This implementation is fast because the GlobalContextProperties class - stores a readonly copy of the properties. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Reading the value for a key is faster than setting the value. - When the value is written a new read only copy of - the properties is created. - - - - - - Manages a mapping from levels to - - - - Manages an ordered mapping from instances - to subclasses. - - - Nicko Cadell - - - - Default constructor - - - - Initialise a new instance of . - - - - - - Add a to this mapping - - the entry to add - - - If a has previously been added - for the same then that entry will be - overwritten. - - - - - - Lookup the mapping for the specified level - - the level to lookup - the for the level or null if no mapping found - - - Lookup the value for the specified level. Finds the nearest - mapping value for the level that is equal to or less than the - specified. - - - If no mapping could be found then null is returned. - - - - - - Initialize options - - - - Caches the sorted list of in an array - - - - - - Implementation of Properties collection for the - - - - Class implements a collection of properties that is specific to each thread. - The class is not synchronized as each thread has its own . - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property - - the key for the entry to remove - - - Remove the value for the specified from the context. - - - - - - Clear all the context properties - - - - Clear all the context properties - - - - - - Get the PropertiesDictionary stored in the LocalDataStoreSlot for this thread. - - create the dictionary if it does not exist, otherwise return null if is does not exist - the properties for this thread - - - The collection returned is only to be used on the calling thread. If the - caller needs to share the collection between different threads then the - caller must clone the collection before doings so. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Get or set the property value for the specified. - - - - - - Outputs log statements from within the log4net assembly. - - - - Log4net components cannot make log4net logging calls. However, it is - sometimes useful for the user to learn about what log4net is - doing. - - - All log4net internal debug calls go to the standard output stream - whereas internal error messages are sent to the standard error output - stream. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Static constructor that initializes logging by reading - settings from the application configuration file. - - - - The log4net.Internal.Debug application setting - controls internal debugging. This setting should be set - to true to enable debugging. - - - The log4net.Internal.Quiet application setting - suppresses all internal logging including error messages. - This setting should be set to true to enable message - suppression. - - - - - - Writes log4net internal debug messages to the - standard output stream. - - The message to log. - - - All internal debug messages are prepended with - the string "log4net: ". - - - - - - Writes log4net internal debug messages to the - standard output stream. - - The message to log. - An exception to log. - - - All internal debug messages are prepended with - the string "log4net: ". - - - - - - Writes log4net internal warning messages to the - standard error stream. - - The message to log. - - - All internal warning messages are prepended with - the string "log4net:WARN ". - - - - - - Writes log4net internal warning messages to the - standard error stream. - - The message to log. - An exception to log. - - - All internal warning messages are prepended with - the string "log4net:WARN ". - - - - - - Writes log4net internal error messages to the - standard error stream. - - The message to log. - - - All internal error messages are prepended with - the string "log4net:ERROR ". - - - - - - Writes log4net internal error messages to the - standard error stream. - - The message to log. - An exception to log. - - - All internal debug messages are prepended with - the string "log4net:ERROR ". - - - - - - Writes output to the standard output stream. - - The message to log. - - - Writes to both Console.Out and System.Diagnostics.Trace. - Note that the System.Diagnostics.Trace is not supported - on the Compact Framework. - - - If the AppDomain is not configured with a config file then - the call to System.Diagnostics.Trace may fail. This is only - an issue if you are programmatically creating your own AppDomains. - - - - - - Writes output to the standard error stream. - - The message to log. - - - Writes to both Console.Error and System.Diagnostics.Trace. - Note that the System.Diagnostics.Trace is not supported - on the Compact Framework. - - - If the AppDomain is not configured with a config file then - the call to System.Diagnostics.Trace may fail. This is only - an issue if you are programmatically creating your own AppDomains. - - - - - - Default debug level - - - - - In quietMode not even errors generate any output. - - - - - Gets or sets a value indicating whether log4net internal logging - is enabled or disabled. - - - true if log4net internal logging is enabled, otherwise - false. - - - - When set to true, internal debug level logging will be - displayed. - - - This value can be set by setting the application setting - log4net.Internal.Debug in the application configuration - file. - - - The default value is false, i.e. debugging is - disabled. - - - - - The following example enables internal debugging using the - application configuration file : - - - - - - - - - - - - - Gets or sets a value indicating whether log4net should generate no output - from internal logging, not even for errors. - - - true if log4net should generate no output at all from internal - logging, otherwise false. - - - - When set to true will cause internal logging at all levels to be - suppressed. This means that no warning or error reports will be logged. - This option overrides the setting and - disables all debug also. - - This value can be set by setting the application setting - log4net.Internal.Quiet in the application configuration file. - - - The default value is false, i.e. internal logging is not - disabled. - - - - The following example disables internal logging using the - application configuration file : - - - - - - - - - - - - Test if LogLog.Debug is enabled for output. - - - true if Debug is enabled - - - - Test if LogLog.Debug is enabled for output. - - - - - - Test if LogLog.Warn is enabled for output. - - - true if Warn is enabled - - - - Test if LogLog.Warn is enabled for output. - - - - - - Test if LogLog.Error is enabled for output. - - - true if Error is enabled - - - - Test if LogLog.Error is enabled for output. - - - - - - Represents a native error code and message. - - - - Represents a Win32 platform native error. - - - Nicko Cadell - Gert Driesen - - - - Create an instance of the class with the specified - error number and message. - - The number of the native error. - The message of the native error. - - - Create an instance of the class with the specified - error number and message. - - - - - - Create a new instance of the class for the last Windows error. - - - An instance of the class for the last windows error. - - - - The message for the error number is lookup up using the - native Win32 FormatMessage function. - - - - - - Create a new instance of the class. - - the error number for the native error - - An instance of the class for the specified - error number. - - - - The message for the specified error number is lookup up using the - native Win32 FormatMessage function. - - - - - - Retrieves the message corresponding with a Win32 message identifier. - - Message identifier for the requested message. - - The message corresponding with the specified message identifier. - - - - The message will be searched for in system message-table resource(s) - using the native FormatMessage function. - - - - - - Return error information string - - error information string - - - Return error information string - - - - - - Formats a message string. - - Formatting options, and how to interpret the parameter. - Location of the message definition. - Message identifier for the requested message. - Language identifier for the requested message. - If includes FORMAT_MESSAGE_ALLOCATE_BUFFER, the function allocates a buffer using the LocalAlloc function, and places the pointer to the buffer at the address specified in . - If the FORMAT_MESSAGE_ALLOCATE_BUFFER flag is not set, this parameter specifies the maximum number of TCHARs that can be stored in the output buffer. If FORMAT_MESSAGE_ALLOCATE_BUFFER is set, this parameter specifies the minimum number of TCHARs to allocate for an output buffer. - Pointer to an array of values that are used as insert values in the formatted message. - - - The function requires a message definition as input. The message definition can come from a - buffer passed into the function. It can come from a message table resource in an - already-loaded module. Or the caller can ask the function to search the system's message - table resource(s) for the message definition. The function finds the message definition - in a message table resource based on a message identifier and a language identifier. - The function copies the formatted message text to an output buffer, processing any embedded - insert sequences if requested. - - - To prevent the usage of unsafe code, this stub does not support inserting values in the formatted message. - - - - - If the function succeeds, the return value is the number of TCHARs stored in the output - buffer, excluding the terminating null character. - - - If the function fails, the return value is zero. To get extended error information, - call . - - - - - - Gets the number of the native error. - - - The number of the native error. - - - - Gets the number of the native error. - - - - - - Gets the message of the native error. - - - The message of the native error. - - - - - Gets the message of the native error. - - - - - An always empty . - - - - A singleton implementation of the over a collection - that is empty and not modifiable. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Test if the enumerator can advance, if so advance. - - false as the cannot advance. - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will always return false. - - - - - - Resets the enumerator back to the start. - - - - As the enumerator is over an empty collection does nothing. - - - - - - The singleton instance of the . - - - - - Gets the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets the current object from the enumerator. - - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current key from the enumerator. - - - Throws an exception because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current value from the enumerator. - - The current value from the enumerator. - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current entry from the enumerator. - - - Throws an because the - never has a current entry. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - An always empty . - - - - A singleton implementation of the over a collection - that is empty and not modifiable. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Test if the enumerator can advance, if so advance - - false as the cannot advance. - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will always return false. - - - - - - Resets the enumerator back to the start. - - - - As the enumerator is over an empty collection does nothing. - - - - - - The singleton instance of the . - - - - - Get the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets the current object from the enumerator. - - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - A SecurityContext used when a SecurityContext is not required - - - - The is a no-op implementation of the - base class. It is used where a - is required but one has not been provided. - - - Nicko Cadell - - - - Singleton instance of - - - - Singleton instance of - - - - - - Private constructor - - - - Private constructor for singleton pattern. - - - - - - Impersonate this SecurityContext - - State supplied by the caller - null - - - No impersonation is done and null is always returned. - - - - - - Implements log4net's default error handling policy which consists - of emitting a message for the first error in an appender and - ignoring all subsequent errors. - - - - The error message is printed on the standard error output stream. - - - This policy aims at protecting an otherwise working application - from being flooded with error messages when logging fails. - - - Nicko Cadell - Gert Driesen - - - - Default Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - The prefix to use for each message. - - - Initializes a new instance of the class - with the specified prefix. - - - - - - Log an Error - - The error message. - The exception. - The internal error code. - - - Prints the message and the stack trace of the exception on the standard - error output stream. - - - - - - Log an Error - - The error message. - The exception. - - - Prints the message and the stack trace of the exception on the standard - error output stream. - - - - - - Log an error - - The error message. - - - Print a the error message passed as parameter on the standard - error output stream. - - - - - - Flag to indicate if it is the first error - - - - - String to prefix each message with - - - - - Is error logging enabled - - - - Is error logging enabled. Logging is only enabled for the - first error delivered to the . - - - - - - A convenience class to convert property values to specific types. - - - - Utility functions for converting types and parsing values. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Converts a string to a value. - - String to convert. - The default value. - The value of . - - - If is "true", then true is returned. - If is "false", then false is returned. - Otherwise, is returned. - - - - - - Parses a file size into a number. - - String to parse. - The default value. - The value of . - - - Parses a file size of the form: number[KB|MB|GB] into a - long value. It is scaled with the appropriate multiplier. - - - is returned when - cannot be converted to a value. - - - - - - Converts a string to an object. - - The target type to convert to. - The string to convert to an object. - - The object converted from a string or null when the - conversion failed. - - - - Converts a string to an object. Uses the converter registry to try - to convert the string value into the specified target type. - - - - - - Checks if there is an appropriate type conversion from the source type to the target type. - - The type to convert from. - The type to convert to. - true if there is a conversion from the source type to the target type. - - Checks if there is an appropriate type conversion from the source type to the target type. - - - - - - - Converts an object to the target type. - - The object to convert to the target type. - The type to convert to. - The converted object. - - - Converts an object to the target type. - - - - - - Instantiates an object given a class name. - - The fully qualified class name of the object to instantiate. - The class to which the new object should belong. - The object to return in case of non-fulfillment. - - An instance of the or - if the object could not be instantiated. - - - - Checks that the is a subclass of - . If that test fails or the object could - not be instantiated, then is returned. - - - - - - Performs variable substitution in string from the - values of keys found in . - - The string on which variable substitution is performed. - The dictionary to use to lookup variables. - The result of the substitutions. - - - The variable substitution delimiters are ${ and }. - - - For example, if props contains key=value, then the call - - - - string s = OptionConverter.SubstituteVariables("Value of key is ${key}."); - - - - will set the variable s to "Value of key is value.". - - - If no value could be found for the specified key, then substitution - defaults to an empty string. - - - For example, if system properties contains no value for the key - "nonExistentKey", then the call - - - - string s = OptionConverter.SubstituteVariables("Value of nonExistentKey is [${nonExistentKey}]"); - - - - will set s to "Value of nonExistentKey is []". - - - An Exception is thrown if contains a start - delimiter "${" which is not balanced by a stop delimiter "}". - - - - - - Converts the string representation of the name or numeric value of one or - more enumerated constants to an equivalent enumerated object. - - The type to convert to. - The enum string value. - If true, ignore case; otherwise, regard case. - An object of type whose value is represented by . - - - - Most of the work of the class - is delegated to the PatternParser class. - - - - The PatternParser processes a pattern string and - returns a chain of objects. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The pattern to parse. - - - Initializes a new instance of the class - with the specified pattern string. - - - - - - Parses the pattern into a chain of pattern converters. - - The head of a chain of pattern converters. - - - Parses the pattern into a chain of pattern converters. - - - - - - Build the unified cache of converters from the static and instance maps - - the list of all the converter names - - - Build the unified cache of converters from the static and instance maps - - - - - - Internal method to parse the specified pattern to find specified matches - - the pattern to parse - the converter names to match in the pattern - - - The matches param must be sorted such that longer strings come before shorter ones. - - - - - - Process a parsed literal - - the literal text - - - - Process a parsed converter pattern - - the name of the converter - the optional option for the converter - the formatting info for the converter - - - - Resets the internal state of the parser and adds the specified pattern converter - to the chain. - - The pattern converter to add. - - - - The first pattern converter in the chain - - - - - the last pattern converter in the chain - - - - - The pattern - - - - - Internal map of converter identifiers to converter types - - - - This map overrides the static s_globalRulesRegistry map. - - - - - - Get the converter registry used by this parser - - - The converter registry used by this parser - - - - Get the converter registry used by this parser - - - - - - Sort strings by length - - - - that orders strings by string length. - The longest strings are placed first - - - - - - This class implements a patterned string. - - - - This string has embedded patterns that are resolved and expanded - when the string is formatted. - - - This class functions similarly to the - in that it accepts a pattern and renders it to a string. Unlike the - however the PatternString - does not render the properties of a specific but - of the process in general. - - - The recognized conversion pattern names are: - - - - Conversion Pattern Name - Effect - - - appdomain - - - Used to output the friendly name of the current AppDomain. - - - - - date - - - Used to output the date of the logging event in the local time zone. - To output the date in universal time use the %utcdate pattern. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %date{HH:mm:ss,fff} or - %date{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %date{ISO8601} or %date{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - env - - - Used to output the a specific environment variable. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %env{COMPUTERNAME} would include the value - of the COMPUTERNAME environment variable. - - - The env pattern is not supported on the .NET Compact Framework. - - - - - identity - - - Used to output the user name for the currently active user - (Principal.Identity.Name). - - - - - newline - - - Outputs the platform dependent line separator character or - characters. - - - This conversion pattern name offers the same performance as using - non-portable line separator strings such as "\n", or "\r\n". - Thus, it is the preferred way of specifying a line separator. - - - - - processid - - - Used to output the system process ID for the current process. - - - - - property - - - Used to output a specific context property. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %property{user} would include the value - from the property that is keyed by the string 'user'. Each property value - that is to be included in the log must be specified separately. - Properties are stored in logging contexts. By default - the log4net:HostName property is set to the name of machine on - which the event was originally logged. - - - If no key is specified, e.g. %property then all the keys and their - values are printed in a comma separated list. - - - The properties of an event are combined from a number of different - contexts. These are listed below in the order in which they are searched. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - random - - - Used to output a random string of characters. The string is made up of - uppercase letters and numbers. By default the string is 4 characters long. - The length of the string can be specified within braces directly following the - pattern specifier, e.g. %random{8} would output an 8 character string. - - - - - username - - - Used to output the WindowsIdentity for the currently - active user. - - - - - utcdate - - - Used to output the date of the logging event in universal time. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %utcdate{HH:mm:ss,fff} or - %utcdate{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %utcdate{ISO8601} or %utcdate{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - % - - - The sequence %% outputs a single percent sign. - - - - - - Additional pattern converters may be registered with a specific - instance using or - . - - - See the for details on the - format modifiers supported by the patterns. - - - Nicko Cadell - - - - Internal map of converter identifiers to converter types. - - - - - the pattern - - - - - the head of the pattern converter chain - - - - - patterns defined on this PatternString only - - - - - Initialize the global registry - - - - - Default constructor - - - - Initialize a new instance of - - - - - - Constructs a PatternString - - The pattern to use with this PatternString - - - Initialize a new instance of with the pattern specified. - - - - - - Initialize object options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Create the used to parse the pattern - - the pattern to parse - The - - - Returns PatternParser used to parse the conversion string. Subclasses - may override this to return a subclass of PatternParser which recognize - custom conversion pattern name. - - - - - - Produces a formatted string as specified by the conversion pattern. - - The TextWriter to write the formatted event to - - - Format the pattern to the . - - - - - - Format the pattern as a string - - the pattern formatted as a string - - - Format the pattern to a string. - - - - - - Add a converter to this PatternString - - the converter info - - - This version of the method is used by the configurator. - Programmatic users should use the alternative method. - - - - - - Add a converter to this PatternString - - the name of the conversion pattern for this converter - the type of the converter - - - Add a converter to this PatternString - - - - - - Gets or sets the pattern formatting string - - - The pattern formatting string - - - - The ConversionPattern option. This is the string which - controls formatting and consists of a mix of literal content and - conversion specifiers. - - - - - - Wrapper class used to map converter names to converter types - - - - Wrapper class used to map converter names to converter types - - - - - - default constructor - - - - - Gets or sets the name of the conversion pattern - - - The name of the conversion pattern - - - - Gets or sets the name of the conversion pattern - - - - - - Gets or sets the type of the converter - - - The type of the converter - - - - Gets or sets the type of the converter - - - - - - String keyed object map. - - - - While this collection is serializable only member - objects that are serializable will - be serialized along with this collection. - - - Nicko Cadell - Gert Driesen - - - - String keyed object map that is read only. - - - - This collection is readonly and cannot be modified. - - - While this collection is serializable only member - objects that are serializable will - be serialized along with this collection. - - - Nicko Cadell - Gert Driesen - - - - The Hashtable used to store the properties data - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Copy Constructor - - properties to copy - - - Initializes a new instance of the class. - - - - - - Deserialization constructor - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Gets the key names. - - An array of all the keys. - - - Gets the key names. - - - - - - Test if the dictionary contains a specified key - - the key to look for - true if the dictionary contains the specified key - - - Test if the dictionary contains a specified key - - - - - - Serializes this object into the provided. - - The to populate with data. - The destination for this serialization. - - - Serializes this object into the provided. - - - - - - See - - - - - See - - - - - - See - - - - - - - Remove all properties from the properties collection - - - - - See - - - - - - - See - - - - - - - See - - - - - Gets or sets the value of the property with the specified key. - - - The value of the property with the specified key. - - The key of the property to get or set. - - - The property value will only be serialized if it is serializable. - If it cannot be serialized it will be silently ignored if - a serialization operation is performed. - - - - - - The hashtable used to store the properties - - - The internal collection used to store the properties - - - - The hashtable used to store the properties - - - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - The number of properties in this collection - - - - - See - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - properties to copy - - - Initializes a new instance of the class. - - - - - - Initializes a new instance of the class - with serialized data. - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Because this class is sealed the serialization constructor is private. - - - - - - Remove the entry with the specified key from this dictionary - - the key for the entry to remove - - - Remove the entry with the specified key from this dictionary - - - - - - See - - an enumerator - - - Returns a over the contest of this collection. - - - - - - See - - the key to remove - - - Remove the entry with the specified key from this dictionary - - - - - - See - - the key to lookup in the collection - true if the collection contains the specified key - - - Test if this collection contains a specified key. - - - - - - Remove all properties from the properties collection - - - - Remove all properties from the properties collection - - - - - - See - - the key - the value to store for the key - - - Store a value for the specified . - - - Thrown if the is not a string - - - - See - - - - - - - See - - - - - Gets or sets the value of the property with the specified key. - - - The value of the property with the specified key. - - The key of the property to get or set. - - - The property value will only be serialized if it is serializable. - If it cannot be serialized it will be silently ignored if - a serialization operation is performed. - - - - - - See - - - false - - - - This collection is modifiable. This property always - returns false. - - - - - - See - - - The value for the key specified. - - - - Get or set a value for the specified . - - - Thrown if the is not a string - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - A that ignores the message - - - - This writer is used in special cases where it is necessary - to protect a writer from being closed by a client. - - - Nicko Cadell - - - - Constructor - - the writer to actually write to - - - Create a new ProtectCloseTextWriter using a writer - - - - - - Attach this instance to a different underlying - - the writer to attach to - - - Attach this instance to a different underlying - - - - - - Does not close the underlying output writer. - - - - Does not close the underlying output writer. - This method does nothing. - - - - - - Defines a lock that supports single writers and multiple readers - - - - ReaderWriterLock is used to synchronize access to a resource. - At any given time, it allows either concurrent read access for - multiple threads, or write access for a single thread. In a - situation where a resource is changed infrequently, a - ReaderWriterLock provides better throughput than a simple - one-at-a-time lock, such as . - - - If a platform does not support a System.Threading.ReaderWriterLock - implementation then all readers and writers are serialized. Therefore - the caller must not rely on multiple simultaneous readers. - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Acquires a reader lock - - - - blocks if a different thread has the writer - lock, or if at least one thread is waiting for the writer lock. - - - - - - Decrements the lock count - - - - decrements the lock count. When the count - reaches zero, the lock is released. - - - - - - Acquires the writer lock - - - - This method blocks if another thread has a reader lock or writer lock. - - - - - - Decrements the lock count on the writer lock - - - - ReleaseWriterLock decrements the writer lock count. - When the count reaches zero, the writer lock is released. - - - - - - A that can be and reused - - - - A that can be and reused. - This uses a single buffer for string operations. - - - Nicko Cadell - - - - Create an instance of - - the format provider to use - - - Create an instance of - - - - - - Override Dispose to prevent closing of writer - - flag - - - Override Dispose to prevent closing of writer - - - - - - Reset this string writer so that it can be reused. - - the maximum buffer capacity before it is trimmed - the default size to make the buffer - - - Reset this string writer so that it can be reused. - The internal buffers are cleared and reset. - - - - - - Utility class for system specific information. - - - - Utility class of static methods for system specific information. - - - Nicko Cadell - Gert Driesen - Alexey Solofnenko - - - - Private constructor to prevent instances. - - - - Only static methods are exposed from this type. - - - - - - Initialize default values for private static fields. - - - - Only static methods are exposed from this type. - - - - - - Gets the assembly location path for the specified assembly. - - The assembly to get the location for. - The location of the assembly. - - - This method does not guarantee to return the correct path - to the assembly. If only tries to give an indication as to - where the assembly was loaded from. - - - - - - Gets the fully qualified name of the , including - the name of the assembly from which the was - loaded. - - The to get the fully qualified name for. - The fully qualified name for the . - - - This is equivalent to the Type.AssemblyQualifiedName property, - but this method works on the .NET Compact Framework 1.0 as well as - the full .NET runtime. - - - - - - Gets the short name of the . - - The to get the name for. - The short name of the . - - - The short name of the assembly is the - without the version, culture, or public key. i.e. it is just the - assembly's file name without the extension. - - - Use this rather than Assembly.GetName().Name because that - is not available on the Compact Framework. - - - Because of a FileIOPermission security demand we cannot do - the obvious Assembly.GetName().Name. We are allowed to get - the of the assembly so we - start from there and strip out just the assembly name. - - - - - - Gets the file name portion of the , including the extension. - - The to get the file name for. - The file name of the assembly. - - - Gets the file name portion of the , including the extension. - - - - - - Loads the type specified in the type string. - - A sibling type to use to load the type. - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified, it will be loaded from the assembly - containing the specified relative type. If the type is not found in the assembly - then all the loaded assemblies will be searched for the type. - - - - - - Loads the type specified in the type string. - - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified it will be loaded from the - assembly that is directly calling this method. If the type is not found - in the assembly then all the loaded assemblies will be searched for the type. - - - - - - Loads the type specified in the type string. - - An assembly to load the type from. - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified it will be loaded from the specified - assembly. If the type is not found in the assembly then all the loaded assemblies - will be searched for the type. - - - - - - Generate a new guid - - A new Guid - - - Generate a new guid - - - - - - Create an - - The name of the parameter that caused the exception - The value of the argument that causes this exception - The message that describes the error - the ArgumentOutOfRangeException object - - - Create a new instance of the class - with a specified error message, the parameter name, and the value - of the argument. - - - The Compact Framework does not support the 3 parameter constructor for the - type. This method provides an - implementation that works for all platforms. - - - - - - Parse a string into an value - - the string to parse - out param where the parsed value is placed - true if the string was able to be parsed into an integer - - - Attempts to parse the string into an integer. If the string cannot - be parsed then this method returns false. The method does not throw an exception. - - - - - - Parse a string into an value - - the string to parse - out param where the parsed value is placed - true if the string was able to be parsed into an integer - - - Attempts to parse the string into an integer. If the string cannot - be parsed then this method returns false. The method does not throw an exception. - - - - - - Lookup an application setting - - the application settings key to lookup - the value for the key, or null - - - Configuration APIs are not supported under the Compact Framework - - - - - - Convert a path into a fully qualified local file path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - The path specified must be a local file path, a URI is not supported. - - - - - - Creates a new case-insensitive instance of the class with the default initial capacity. - - A new case-insensitive instance of the class with the default initial capacity - - - The new Hashtable instance uses the default load factor, the CaseInsensitiveHashCodeProvider, and the CaseInsensitiveComparer. - - - - - - Gets an empty array of types. - - - - The Type.EmptyTypes field is not available on - the .NET Compact Framework 1.0. - - - - - - Cache the host name for the current machine - - - - - Cache the application friendly name - - - - - Text to output when a null is encountered. - - - - - Text to output when an unsupported feature is requested. - - - - - Start time for the current process. - - - - - Gets the system dependent line terminator. - - - The system dependent line terminator. - - - - Gets the system dependent line terminator. - - - - - - Gets the base directory for this . - - The base directory path for the current . - - - Gets the base directory for this . - - - The value returned may be either a local file path or a URI. - - - - - - Gets the path to the configuration file for the current . - - The path to the configuration file for the current . - - - The .NET Compact Framework 1.0 does not have a concept of a configuration - file. For this runtime, we use the entry assembly location as the root for - the configuration file name. - - - The value returned may be either a local file path or a URI. - - - - - - Gets the path to the file that first executed in the current . - - The path to the entry assembly. - - - Gets the path to the file that first executed in the current . - - - - - - Gets the ID of the current thread. - - The ID of the current thread. - - - On the .NET framework, the AppDomain.GetCurrentThreadId method - is used to obtain the thread ID for the current thread. This is the - operating system ID for the thread. - - - On the .NET Compact Framework 1.0 it is not possible to get the - operating system thread ID for the current thread. The native method - GetCurrentThreadId is implemented inline in a header file - and cannot be called. - - - On the .NET Framework 2.0 the Thread.ManagedThreadId is used as this - gives a stable id unrelated to the operating system thread ID which may - change if the runtime is using fibers. - - - - - - Get the host name or machine name for the current machine - - - The hostname or machine name - - - - Get the host name or machine name for the current machine - - - The host name () or - the machine name (Environment.MachineName) for - the current machine, or if neither of these are available - then NOT AVAILABLE is returned. - - - - - - Get this application's friendly name - - - The friendly name of this application as a string - - - - If available the name of the application is retrieved from - the AppDomain using AppDomain.CurrentDomain.FriendlyName. - - - Otherwise the file name of the entry assembly is used. - - - - - - Get the start time for the current process. - - - - This is the time at which the log4net library was loaded into the - AppDomain. Due to reports of a hang in the call to System.Diagnostics.Process.StartTime - this is not the start time for the current process. - - - The log4net library should be loaded by an application early during its - startup, therefore this start time should be a good approximation for - the actual start time. - - - Note that AppDomains may be loaded and unloaded within the - same process without the process terminating, however this start time - will be set per AppDomain. - - - - - - Text to output when a null is encountered. - - - - Use this value to indicate a null has been encountered while - outputting a string representation of an item. - - - The default value is (null). This value can be overridden by specifying - a value for the log4net.NullText appSetting in the application's - .config file. - - - - - - Text to output when an unsupported feature is requested. - - - - Use this value when an unsupported feature is requested. - - - The default value is NOT AVAILABLE. This value can be overridden by specifying - a value for the log4net.NotAvailableText appSetting in the application's - .config file. - - - - - - Utility class that represents a format string. - - - - Utility class that represents a format string. - - - Nicko Cadell - - - - Initialise the - - An that supplies culture-specific formatting information. - A containing zero or more format items. - An array containing zero or more objects to format. - - - - Format the string and arguments - - the formatted string - - - - Replaces the format item in a specified with the text equivalent - of the value of a corresponding instance in a specified array. - A specified parameter supplies culture-specific formatting information. - - An that supplies culture-specific formatting information. - A containing zero or more format items. - An array containing zero or more objects to format. - - A copy of format in which the format items have been replaced by the - equivalent of the corresponding instances of in args. - - - - This method does not throw exceptions. If an exception thrown while formatting the result the - exception and arguments are returned in the result string. - - - - - - Process an error during StringFormat - - - - - Dump the contents of an array into a string builder - - - - - Dump an object to a string - - - - - Implementation of Properties collection for the - - - - Class implements a collection of properties that is specific to each thread. - The class is not synchronized as each thread has its own . - - - Nicko Cadell - - - - The thread local data slot to use to store a PropertiesDictionary. - - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property - - the key for the entry to remove - - - Remove a property - - - - - - Clear all properties - - - - Clear all properties - - - - - - Get the PropertiesDictionary for this thread. - - create the dictionary if it does not exist, otherwise return null if is does not exist - the properties for this thread - - - The collection returned is only to be used on the calling thread. If the - caller needs to share the collection between different threads then the - caller must clone the collection before doing so. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Implementation of Stack for the - - - - Implementation of Stack for the - - - Nicko Cadell - - - - The stack store. - - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Clears all the contextual information held in this stack. - - - - Clears all the contextual information held in this stack. - Only call this if you think that this tread is being reused after - a previous call execution which may not have completed correctly. - You do not need to use this method if you always guarantee to call - the method of the - returned from even in exceptional circumstances, - for example by using the using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) - syntax. - - - - - - Removes the top context from this stack. - - The message in the context that was removed from the top of this stack. - - - Remove the top context from this stack, and return - it to the caller. If this stack is empty then an - empty string (not ) is returned. - - - - - - Pushes a new context message into this stack. - - The new context message. - - An that can be used to clean up the context stack. - - - - Pushes a new context onto this stack. An - is returned that can be used to clean up this stack. This - can be easily combined with the using keyword to scope the - context. - - - Simple example of using the Push method with the using keyword. - - using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) - { - log.Warn("This should have an ThreadContext Stack message"); - } - - - - - - Gets the current context information for this stack. - - The current context information. - - - - Gets the current context information for this stack. - - Gets the current context information - - - Gets the current context information for this stack. - - - - - - Get a portable version of this object - - the portable instance of this object - - - Get a cross thread portable version of this object - - - - - - The number of messages in the stack - - - The current number of messages in the stack - - - - The current number of messages in the stack. That is - the number of times has been called - minus the number of times has been called. - - - - - - Gets and sets the internal stack used by this - - The internal storage stack - - - This property is provided only to support backward compatability - of the . Tytpically the internal stack should not - be modified. - - - - - - Inner class used to represent a single context frame in the stack. - - - - Inner class used to represent a single context frame in the stack. - - - - - - Constructor - - The message for this context. - The parent context in the chain. - - - Initializes a new instance of the class - with the specified message and parent context. - - - - - - Get the message. - - The message. - - - Get the message. - - - - - - Gets the full text of the context down to the root level. - - - The full text of the context down to the root level. - - - - Gets the full text of the context down to the root level. - - - - - - Struct returned from the method. - - - - This struct implements the and is designed to be used - with the pattern to remove the stack frame at the end of the scope. - - - - - - The ThreadContextStack internal stack - - - - - The depth to trim the stack to when this instance is disposed - - - - - Constructor - - The internal stack used by the ThreadContextStack. - The depth to return the stack to when this object is disposed. - - - Initializes a new instance of the class with - the specified stack and return depth. - - - - - - Returns the stack to the correct depth. - - - - Returns the stack to the correct depth. - - - - - - Implementation of Stacks collection for the - - - - Implementation of Stacks collection for the - - - Nicko Cadell - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Gets the named thread context stack - - - The named stack - - - - Gets the named thread context stack - - - - - - Utility class for transforming strings. - - - - Utility class for transforming strings. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Write a string to an - - the writer to write to - the string to write - The string to replace non XML compliant chars with - - - The test is escaped either using XML escape entities - or using CDATA sections. - - - - - - Replace invalid XML characters in text string - - the XML text input string - the string to use in place of invalid characters - A string that does not contain invalid XML characters. - - - Certain Unicode code points are not allowed in the XML InfoSet, for - details see: http://www.w3.org/TR/REC-xml/#charsets. - - - This method replaces any illegal characters in the input string - with the mask string specified. - - - - - - Count the number of times that the substring occurs in the text - - the text to search - the substring to find - the number of times the substring occurs in the text - - - The substring is assumed to be non repeating within itself. - - - - - - Impersonate a Windows Account - - - - This impersonates a Windows account. - - - How the impersonation is done depends on the value of . - This allows the context to either impersonate a set of user credentials specified - using username, domain name and password or to revert to the process credentials. - - - - - - Default constructor - - - - Default constructor - - - - - - Initialize the SecurityContext based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The security context will try to Logon the specified user account and - capture a primary token for impersonation. - - - The required , - or properties were not specified. - - - - Impersonate the Windows account specified by the and properties. - - caller provided state - - An instance that will revoke the impersonation of this SecurityContext - - - - Depending on the property either - impersonate a user using credentials supplied or revert - to the process credentials. - - - - - - Create a given the userName, domainName and password. - - the user name - the domain name - the password - the for the account specified - - - Uses the Windows API call LogonUser to get a principal token for the account. This - token is used to initialize the WindowsIdentity. - - - - - - Gets or sets the impersonation mode for this security context - - - The impersonation mode for this security context - - - - Impersonate either a user with user credentials or - revert this thread to the credentials of the process. - The value is one of the - enum. - - - The default value is - - - When the mode is set to - the user's credentials are established using the - , and - values. - - - When the mode is set to - no other properties need to be set. If the calling thread is - impersonating then it will be reverted back to the process credentials. - - - - - - Gets or sets the Windows username for this security context - - - The Windows username for this security context - - - - This property must be set if - is set to (the default setting). - - - - - - Gets or sets the Windows domain name for this security context - - - The Windows domain name for this security context - - - - The default value for is the local machine name - taken from the property. - - - This property must be set if - is set to (the default setting). - - - - - - Sets the password for the Windows account specified by the and properties. - - - The password for the Windows account specified by the and properties. - - - - This property must be set if - is set to (the default setting). - - - - - - The impersonation modes for the - - - - See the property for - details. - - - - - - Impersonate a user using the credentials supplied - - - - - Revert this the thread to the credentials of the process - - - - - Adds to - - - - Helper class to expose the - through the interface. - - - - - - Constructor - - the impersonation context being wrapped - - - Constructor - - - - - - Revert the impersonation - - - - Revert the impersonation - - - - - - The log4net Global Context. - - - - The GlobalContext provides a location for global debugging - information to be stored. - - - The global context has a properties map and these properties can - be included in the output of log messages. The - supports selecting and outputing these properties. - - - By default the log4net:HostName property is set to the name of - the current machine. - - - - - GlobalContext.Properties["hostname"] = Environment.MachineName; - - - - Nicko Cadell - - - - Private Constructor. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - The global context properties instance - - - - - The global properties map. - - - The global properties map. - - - - The global properties map. - - - - - - The log4net Logical Thread Context. - - - - The LogicalThreadContext provides a location for specific debugging - information to be stored. - The LogicalThreadContext properties override any or - properties with the same name. - - - The Logical Thread Context has a properties map and a stack. - The properties and stack can - be included in the output of log messages. The - supports selecting and outputting these properties. - - - The Logical Thread Context provides a diagnostic context for the current call context. - This is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The Logical Thread Context is managed on a per basis. - - - Example of using the thread context properties to store a username. - - LogicalThreadContext.Properties["user"] = userName; - log.Info("This log message has a LogicalThreadContext Property called 'user'"); - - - Example of how to push a message into the context stack - - using(LogicalThreadContext.Stacks["LDC"].Push("my context message")) - { - log.Info("This log message has a LogicalThreadContext Stack message that includes 'my context message'"); - - } // at the end of the using block the message is automatically popped - - - - Nicko Cadell - - - - Private Constructor. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - The thread context properties instance - - - - - The thread context stacks instance - - - - - The thread properties map - - - The thread properties map - - - - The LogicalThreadContext properties override any - or properties with the same name. - - - - - - The thread stacks - - - stack map - - - - The logical thread stacks. - - - - - - This class is used by client applications to request logger instances. - - - - This class has static methods that are used by a client to request - a logger instance. The method is - used to retrieve a logger. - - - See the interface for more details. - - - Simple example of logging messages - - ILog log = LogManager.GetLogger("application-log"); - - log.Info("Application Start"); - log.Debug("This is a debug message"); - - if (log.IsDebugEnabled) - { - log.Debug("This is another debug message"); - } - - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - Returns the named logger if it exists. - - Returns the named logger if it exists. - - - - If the named logger exists (in the default repository) then it - returns a reference to the logger, otherwise it returns null. - - - The fully qualified logger name to look for. - The logger found, or null if no logger could be found. - - - - Returns the named logger if it exists. - - - - If the named logger exists (in the specified repository) then it - returns a reference to the logger, otherwise it returns - null. - - - The repository to lookup in. - The fully qualified logger name to look for. - - The logger found, or null if the logger doesn't exist in the specified - repository. - - - - - Returns the named logger if it exists. - - - - If the named logger exists (in the repository for the specified assembly) then it - returns a reference to the logger, otherwise it returns - null. - - - The assembly to use to lookup the repository. - The fully qualified logger name to look for. - - The logger, or null if the logger doesn't exist in the specified - assembly's repository. - - - - Get the currently defined loggers. - - Returns all the currently defined loggers in the default repository. - - - The root logger is not included in the returned array. - - All the defined loggers. - - - - Returns all the currently defined loggers in the specified repository. - - The repository to lookup in. - - The root logger is not included in the returned array. - - All the defined loggers. - - - - Returns all the currently defined loggers in the specified assembly's repository. - - The assembly to use to lookup the repository. - - The root logger is not included in the returned array. - - All the defined loggers. - - - Get or create a logger. - - Retrieves or creates a named logger. - - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The name of the logger to retrieve. - The logger with the name specified. - - - - Retrieves or creates a named logger. - - - - Retrieve a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The repository to lookup in. - The name of the logger to retrieve. - The logger with the name specified. - - - - Retrieves or creates a named logger. - - - - Retrieve a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The assembly to use to lookup the repository. - The name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Get the logger for the fully qualified name of the type specified. - - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Gets the logger for the fully qualified name of the type specified. - - The repository to lookup in. - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Gets the logger for the fully qualified name of the type specified. - - The assembly to use to lookup the repository. - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shuts down the log4net system. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in all the - default repositories. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - Shutdown a logger repository. - - Shuts down the default repository. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - default repository. - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - The repository to shutdown. - - - - Shuts down the repository specified. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository. The repository is looked up using - the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - The assembly to use to lookup the repository. - - - Reset the configuration of a repository - - Resets all values contained in this repository instance to their defaults. - - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - - - - Resets all values contained in this repository instance to their defaults. - - - - Reset all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - The repository to reset. - - - - Resets all values contained in this repository instance to their defaults. - - - - Reset all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - The assembly to use to lookup the repository to reset. - - - Get the logger repository. - - Returns the default instance. - - - - Gets the for the repository specified - by the callers assembly (). - - - The instance for the default repository. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The repository to lookup in. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The assembly to use to lookup the repository. - - - Get a logger repository. - - Returns the default instance. - - - - Gets the for the repository specified - by the callers assembly (). - - - The instance for the default repository. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The repository to lookup in. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The assembly to use to lookup the repository. - - - Create a domain - - Creates a repository with the specified repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to will return - the same repository instance. - - - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - Create a logger repository. - - Creates a repository with the specified repository type. - - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The created will be associated with the repository - specified such that a call to will return - the same repository instance. - - - - - - Creates a repository with the specified name. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name. - - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - The specified repository already exists. - - - - Creates a repository for the specified assembly and repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - - Creates a repository for the specified assembly and repository type. - - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - - Gets the list of currently defined repositories. - - - - Get an array of all the objects that have been created. - - - An array of all the known objects. - - - - Looks up the wrapper object for the logger specified. - - The logger to get the wrapper for. - The wrapper for the logger specified. - - - - Looks up the wrapper objects for the loggers specified. - - The loggers to get the wrappers for. - The wrapper objects for the loggers specified. - - - - Create the objects used by - this manager. - - The logger to wrap. - The wrapper for the logger specified. - - - - The wrapper map to use to hold the objects. - - - - - Implementation of Mapped Diagnostic Contexts. - - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - The MDC class is similar to the class except that it is - based on a map instead of a stack. It provides mapped - diagnostic contexts. A Mapped Diagnostic Context, or - MDC in short, is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The MDC is managed on a per thread basis. - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - Gets the context value identified by the parameter. - - The key to lookup in the MDC. - The string value held for the key, or a null reference if no corresponding value is found. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - If the parameter does not look up to a - previously defined context then null will be returned. - - - - - - Add an entry to the MDC - - The key to store the value under. - The value to store. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Puts a context value (the parameter) as identified - with the parameter into the current thread's - context map. - - - If a value is already defined for the - specified then the value will be replaced. If the - is specified as null then the key value mapping will be removed. - - - - - - Removes the key value mapping for the key specified. - - The key to remove. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Remove the specified entry from this thread's MDC - - - - - - Clear all entries in the MDC - - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Remove all the entries from this thread's MDC - - - - - - Implementation of Nested Diagnostic Contexts. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - A Nested Diagnostic Context, or NDC in short, is an instrument - to distinguish interleaved log output from different sources. Log - output is typically interleaved when a server handles multiple - clients near-simultaneously. - - - Interleaved log output can still be meaningful if each log entry - from different contexts had a distinctive stamp. This is where NDCs - come into play. - - - Note that NDCs are managed on a per thread basis. The NDC class - is made up of static methods that operate on the context of the - calling thread. - - - How to push a message into the context - - using(NDC.Push("my context message")) - { - ... all log calls will have 'my context message' included ... - - } // at the end of the using block the message is automatically removed - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - Clears all the contextual information held on the current thread. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Clears the stack of NDC data held on the current thread. - - - - - - Creates a clone of the stack of context information. - - A clone of the context info for this thread. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - The results of this method can be passed to the - method to allow child threads to inherit the context of their - parent thread. - - - - - - Inherits the contextual information from another thread. - - The context stack to inherit. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - This thread will use the context information from the stack - supplied. This can be used to initialize child threads with - the same contextual information as their parent threads. These - contexts will NOT be shared. Any further contexts that - are pushed onto the stack will not be visible to the other. - Call to obtain a stack to pass to - this method. - - - - - - Removes the top context from the stack. - - - The message in the context that was removed from the top - of the stack. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Remove the top context from the stack, and return - it to the caller. If the stack is empty then an - empty string (not null) is returned. - - - - - - Pushes a new context message. - - The new context message. - - An that can be used to clean up - the context stack. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Pushes a new context onto the context stack. An - is returned that can be used to clean up the context stack. This - can be easily combined with the using keyword to scope the - context. - - - Simple example of using the Push method with the using keyword. - - using(log4net.NDC.Push("NDC_Message")) - { - log.Warn("This should have an NDC message"); - } - - - - - - Removes the context information for this thread. It is - not required to call this method. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - This method is not implemented. - - - - - - Forces the stack depth to be at most . - - The maximum depth of the stack - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Forces the stack depth to be at most . - This may truncate the head of the stack. This only affects the - stack in the current thread. Also it does not prevent it from - growing, it only sets the maximum depth at the time of the - call. This can be used to return to a known context depth. - - - - - - Gets the current context depth. - - The current context depth. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - The number of context values pushed onto the context stack. - - - Used to record the current depth of the context. This can then - be restored using the method. - - - - - - - The log4net Thread Context. - - - - The ThreadContext provides a location for thread specific debugging - information to be stored. - The ThreadContext properties override any - properties with the same name. - - - The thread context has a properties map and a stack. - The properties and stack can - be included in the output of log messages. The - supports selecting and outputting these properties. - - - The Thread Context provides a diagnostic context for the current thread. - This is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The Thread Context is managed on a per thread basis. - - - Example of using the thread context properties to store a username. - - ThreadContext.Properties["user"] = userName; - log.Info("This log message has a ThreadContext Property called 'user'"); - - - Example of how to push a message into the context stack - - using(ThreadContext.Stacks["NDC"].Push("my context message")) - { - log.Info("This log message has a ThreadContext Stack message that includes 'my context message'"); - - } // at the end of the using block the message is automatically popped - - - - Nicko Cadell - - - - Private Constructor. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - The thread context properties instance - - - - - The thread context stacks instance - - - - - The thread properties map - - - The thread properties map - - - - The ThreadContext properties override any - properties with the same name. - - - - - - The thread stacks - - - stack map - - - - The thread local stacks. - - - - - diff --git a/src/packages/log4net.1.2.10/lib/1.1/log4net.dll b/src/packages/log4net.1.2.10/lib/1.1/log4net.dll deleted file mode 100644 index 995816f..0000000 Binary files a/src/packages/log4net.1.2.10/lib/1.1/log4net.dll and /dev/null differ diff --git a/src/packages/log4net.1.2.10/lib/1.1/log4net.xml b/src/packages/log4net.1.2.10/lib/1.1/log4net.xml deleted file mode 100644 index b8fd000..0000000 --- a/src/packages/log4net.1.2.10/lib/1.1/log4net.xml +++ /dev/null @@ -1,28655 +0,0 @@ - - - - log4net - - - - - Appender that logs to a database. - - - - appends logging events to a table within a - database. The appender can be configured to specify the connection - string by setting the property. - The connection type (provider) can be specified by setting the - property. For more information on database connection strings for - your specific database see http://www.connectionstrings.com/. - - - Records are written into the database either using a prepared - statement or a stored procedure. The property - is set to (System.Data.CommandType.Text) to specify a prepared statement - or to (System.Data.CommandType.StoredProcedure) to specify a stored - procedure. - - - The prepared statement text or the name of the stored procedure - must be set in the property. - - - The prepared statement or stored procedure can take a number - of parameters. Parameters are added using the - method. This adds a single to the - ordered list of parameters. The - type may be subclassed if required to provide database specific - functionality. The specifies - the parameter name, database type, size, and how the value should - be generated using a . - - - - An example of a SQL Server table that could be logged to: - - CREATE TABLE [dbo].[Log] ( - [ID] [int] IDENTITY (1, 1) NOT NULL , - [Date] [datetime] NOT NULL , - [Thread] [varchar] (255) NOT NULL , - [Level] [varchar] (20) NOT NULL , - [Logger] [varchar] (255) NOT NULL , - [Message] [varchar] (4000) NOT NULL - ) ON [PRIMARY] - - - - An example configuration to log to the above table: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Julian Biddle - Nicko Cadell - Gert Driesen - Lance Nehring - - - - Abstract base class implementation of that - buffers events in a fixed size buffer. - - - - This base class should be used by appenders that need to buffer a - number of events before logging them. For example the - buffers events and then submits the entire contents of the buffer to - the underlying database in one go. - - - Subclasses should override the - method to deliver the buffered events. - - The BufferingAppenderSkeleton maintains a fixed size cyclic - buffer of events. The size of the buffer is set using - the property. - - A is used to inspect - each event as it arrives in the appender. If the - triggers, then the current buffer is sent immediately - (see ). Otherwise the event - is stored in the buffer. For example, an evaluator can be used to - deliver the events immediately when an ERROR event arrives. - - - The buffering appender can be configured in a mode. - By default the appender is NOT lossy. When the buffer is full all - the buffered events are sent with . - If the property is set to true then the - buffer will not be sent when it is full, and new events arriving - in the appender will overwrite the oldest event in the buffer. - In lossy mode the buffer will only be sent when the - triggers. This can be useful behavior when you need to know about - ERROR events but not about events with a lower level, configure an - evaluator that will trigger when an ERROR event arrives, the whole - buffer will be sent which gives a history of events leading up to - the ERROR event. - - - Nicko Cadell - Gert Driesen - - - - Abstract base class implementation of . - - - - This class provides the code for common functionality, such - as support for threshold filtering and support for general filters. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface for your own strategies for printing log statements. - - - - Implementors should consider extending the - class which provides a default implementation of this interface. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Log the logging event in Appender specific way. - - The event to log - - - This method is called to log a message into this appender. - - - - - - Gets or sets the name of this appender. - - The name of the appender. - - The name uniquely identifies the appender. - - - - - Interface for appenders that support bulk logging. - - - - This interface extends the interface to - support bulk logging of objects. Appenders - should only implement this interface if they can bulk log efficiently. - - - Nicko Cadell - - - - Log the array of logging events in Appender specific way. - - The events to log - - - This method is called to log an array of events into this appender. - - - - - - Interface used to delay activate a configured object. - - - - This allows an object to defer activation of its options until all - options have been set. This is required for components which have - related options that remain ambiguous until all are set. - - - If a component implements this interface then the method - must be called by the container after its all the configured properties have been set - and before the component can be used. - - - Nicko Cadell - - - - Activate the options that were previously set with calls to properties. - - - - This allows an object to defer activation of its options until all - options have been set. This is required for components which have - related options that remain ambiguous until all are set. - - - If a component implements this interface then this method must be called - after its properties have been set before the component can be used. - - - - - - Initial buffer size - - - - - Maximum buffer size before it is recycled - - - - - Default constructor - - - Empty default constructor - - - - - Finalizes this appender by calling the implementation's - method. - - - - If this appender has not been closed then the Finalize method - will call . - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Closes the appender and release resources. - - - - Release any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - This method cannot be overridden by subclasses. This method - delegates the closing of the appender to the - method which must be overridden in the subclass. - - - - - - Performs threshold checks and invokes filters before - delegating actual logging to the subclasses specific - method. - - The event to log. - - - This method cannot be overridden by derived classes. A - derived class should override the method - which is called by this method. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - Calls and checks that - it returns true. - - - - - If all of the above steps succeed then the - will be passed to the abstract method. - - - - - - Performs threshold checks and invokes filters before - delegating actual logging to the subclasses specific - method. - - The array of events to log. - - - This method cannot be overridden by derived classes. A - derived class should override the method - which is called by this method. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - Calls and checks that - it returns true. - - - - - If all of the above steps succeed then the - will be passed to the method. - - - - - - Test if the logging event should we output by this appender - - the event to test - true if the event should be output, false if the event should be ignored - - - This method checks the logging event against the threshold level set - on this appender and also against the filters specified on this - appender. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - - - - - Adds a filter to the end of the filter chain. - - the filter to add to this appender - - - The Filters are organized in a linked list. - - - Setting this property causes the new filter to be pushed onto the - back of the filter chain. - - - - - - Clears the filter list for this appender. - - - - Clears the filter list for this appender. - - - - - - Checks if the message level is below this appender's threshold. - - to test against. - - - If there is no threshold set, then the return value is always true. - - - - true if the meets the - requirements of this appender. - - - - - Is called when the appender is closed. Derived classes should override - this method if resources need to be released. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Subclasses of should implement this method - to perform actual logging. - - The event to append. - - - A subclass must implement this method to perform - logging of the . - - This method will be called by - if all the conditions listed for that method are met. - - - To restrict the logging of events in the appender - override the method. - - - - - - Append a bulk array of logging events. - - the array of logging events - - - This base class implementation calls the - method for each element in the bulk array. - - - A sub class that can better process a bulk array of events should - override this method in addition to . - - - - - - Called before as a precondition. - - - - This method is called by - before the call to the abstract method. - - - This method can be overridden in a subclass to extend the checks - made before the event is passed to the method. - - - A subclass should ensure that they delegate this call to - this base class if it is overridden. - - - true if the call to should proceed. - - - - Renders the to a string. - - The event to render. - The event rendered as a string. - - - Helper method to render a to - a string. This appender must have a - set to render the to - a string. - - If there is exception data in the logging event and - the layout does not process the exception, this method - will append the exception text to the rendered string. - - - Where possible use the alternative version of this method - . - That method streams the rendering onto an existing Writer - which can give better performance if the caller already has - a open and ready for writing. - - - - - - Renders the to a string. - - The event to render. - The TextWriter to write the formatted event to - - - Helper method to render a to - a string. This appender must have a - set to render the to - a string. - - If there is exception data in the logging event and - the layout does not process the exception, this method - will append the exception text to the rendered string. - - - Use this method in preference to - where possible. If, however, the caller needs to render the event - to a string then does - provide an efficient mechanism for doing so. - - - - - - The layout of this appender. - - - See for more information. - - - - - The name of this appender. - - - See for more information. - - - - - The level threshold of this appender. - - - - There is no level threshold filtering by default. - - - See for more information. - - - - - - It is assumed and enforced that errorHandler is never null. - - - - It is assumed and enforced that errorHandler is never null. - - - See for more information. - - - - - - The first filter in the filter chain. - - - - Set to null initially. - - - See for more information. - - - - - - The last filter in the filter chain. - - - See for more information. - - - - - Flag indicating if this appender is closed. - - - See for more information. - - - - - The guard prevents an appender from repeatedly calling its own DoAppend method - - - - - StringWriter used to render events - - - - - Gets or sets the threshold of this appender. - - - The threshold of the appender. - - - - All log events with lower level than the threshold level are ignored - by the appender. - - - In configuration files this option is specified by setting the - value of the option to a level - string, such as "DEBUG", "INFO" and so on. - - - - - - Gets or sets the for this appender. - - The of the appender - - - The provides a default - implementation for the property. - - - - - - The filter chain. - - The head of the filter chain filter chain. - - - Returns the head Filter. The Filters are organized in a linked list - and so all Filters on this Appender are available through the result. - - - - - - Gets or sets the for this appender. - - The layout of the appender. - - - See for more information. - - - - - - - Gets or sets the name of this appender. - - The name of the appender. - - - The name uniquely identifies the appender. - - - - - - Tests if this appender requires a to be set. - - - - In the rather exceptional case, where the appender - implementation admits a layout but can also work without it, - then the appender should return true. - - - This default implementation always returns true. - - - - true if the appender requires a layout object, otherwise false. - - - - - The default buffer size. - - - The default size of the cyclic buffer used to store events. - This is set to 512 by default. - - - - - Initializes a new instance of the class. - - - - Protected default constructor to allow subclassing. - - - - - - Initializes a new instance of the class. - - the events passed through this appender must be - fixed by the time that they arrive in the derived class' SendBuffer method. - - - Protected constructor to allow subclassing. - - - The should be set if the subclass - expects the events delivered to be fixed even if the - is set to zero, i.e. when no buffering occurs. - - - - - - Flush the currently buffered events - - - - Flushes any events that have been buffered. - - - If the appender is buffering in mode then the contents - of the buffer will NOT be flushed to the appender. - - - - - - Flush the currently buffered events - - set to true to flush the buffer of lossy events - - - Flushes events that have been buffered. If is - false then events will only be flushed if this buffer is non-lossy mode. - - - If the appender is buffering in mode then the contents - of the buffer will only be flushed if is true. - In this case the contents of the buffer will be tested against the - and if triggering will be output. All other buffered - events will be discarded. - - - If is true then the buffer will always - be emptied by calling this method. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Close this appender instance. - - - - Close this appender instance. If this appender is marked - as not then the remaining events in - the buffer must be sent when the appender is closed. - - - - - - This method is called by the method. - - the event to log - - - Stores the in the cyclic buffer. - - - The buffer will be sent (i.e. passed to the - method) if one of the following conditions is met: - - - - The cyclic buffer is full and this appender is - marked as not lossy (see ) - - - An is set and - it is triggered for the - specified. - - - - Before the event is stored in the buffer it is fixed - (see ) to ensure that - any data referenced by the event will be valid when the buffer - is processed. - - - - - - Sends the contents of the buffer. - - The first logging event. - The buffer containing the events that need to be send. - - - The subclass must override . - - - - - - Sends the events. - - The events that need to be send. - - - The subclass must override this method to process the buffered events. - - - - - - The size of the cyclic buffer used to hold the logging events. - - - Set to by default. - - - - - The cyclic buffer used to store the logging events. - - - - - The triggering event evaluator that causes the buffer to be sent immediately. - - - The object that is used to determine if an event causes the entire - buffer to be sent immediately. This field can be null, which - indicates that event triggering is not to be done. The evaluator - can be set using the property. If this appender - has the ( property) set to - true then an must be set. - - - - - Indicates if the appender should overwrite events in the cyclic buffer - when it becomes full, or if the buffer should be flushed when the - buffer is full. - - - If this field is set to true then an must - be set. - - - - - The triggering event evaluator filters discarded events. - - - The object that is used to determine if an event that is discarded should - really be discarded or if it should be sent to the appenders. - This field can be null, which indicates that all discarded events will - be discarded. - - - - - Value indicating which fields in the event should be fixed - - - By default all fields are fixed - - - - - The events delivered to the subclass must be fixed. - - - - - Gets or sets a value that indicates whether the appender is lossy. - - - true if the appender is lossy, otherwise false. The default is false. - - - - This appender uses a buffer to store logging events before - delivering them. A triggering event causes the whole buffer - to be send to the remote sink. If the buffer overruns before - a triggering event then logging events could be lost. Set - to false to prevent logging events - from being lost. - - If is set to true then an - must be specified. - - - - - Gets or sets the size of the cyclic buffer used to hold the - logging events. - - - The size of the cyclic buffer used to hold the logging events. - - - - The option takes a positive integer - representing the maximum number of logging events to collect in - a cyclic buffer. When the is reached, - oldest events are deleted as new events are added to the - buffer. By default the size of the cyclic buffer is 512 events. - - - If the is set to a value less than - or equal to 1 then no buffering will occur. The logging event - will be delivered synchronously (depending on the - and properties). Otherwise the event will - be buffered. - - - - - - Gets or sets the that causes the - buffer to be sent immediately. - - - The that causes the buffer to be - sent immediately. - - - - The evaluator will be called for each event that is appended to this - appender. If the evaluator triggers then the current buffer will - immediately be sent (see ). - - If is set to true then an - must be specified. - - - - - Gets or sets the value of the to use. - - - The value of the to use. - - - - The evaluator will be called for each event that is discarded from this - appender. If the evaluator triggers then the current buffer will immediately - be sent (see ). - - - - - - Gets or sets a value indicating if only part of the logging event data - should be fixed. - - - true if the appender should only fix part of the logging event - data, otherwise false. The default is false. - - - - Setting this property to true will cause only part of the - event data to be fixed and serialized. This will improve performance. - - - See for more information. - - - - - - Gets or sets a the fields that will be fixed in the event - - - The event fields that will be fixed before the event is buffered - - - - The logging event needs to have certain thread specific values - captured before it can be buffered. See - for details. - - - - - - - Initializes a new instance of the class. - - - Public default constructor to initialize a new instance of this class. - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Override the parent method to close the database - - - - Closes the database command and database connection. - - - - - - Inserts the events into the database. - - The events to insert into the database. - - - Insert all the events specified in the - array into the database. - - - - - - Adds a parameter to the command. - - The parameter to add to the command. - - - Adds a parameter to the ordered list of command parameters. - - - - - - Writes the events to the database using the transaction specified. - - The transaction that the events will be executed under. - The array of events to insert into the database. - - - The transaction argument can be null if the appender has been - configured not to use transactions. See - property for more information. - - - - - - Formats the log message into database statement text. - - The event being logged. - - This method can be overridden by subclasses to provide - more control over the format of the database statement. - - - Text that can be passed to a . - - - - - Connects to the database. - - - - - Retrieves the class type of the ADO.NET provider. - - - - Gets the Type of the ADO.NET provider to use to connect to the - database. This method resolves the type specified in the - property. - - - Subclasses can override this method to return a different type - if necessary. - - - The of the ADO.NET provider - - - - Prepares the database command and initialize the parameters. - - - - - Flag to indicate if we are using a command object - - - - Set to true when the appender is to use a prepared - statement or stored procedure to insert into the database. - - - - - - The list of objects. - - - - The list of objects. - - - - - - The security context to use for privileged calls - - - - - The that will be used - to insert logging events into a database. - - - - - The database command. - - - - - Database connection string. - - - - - String type name of the type name. - - - - - The text of the command. - - - - - The command type. - - - - - Indicates whether to use transactions when writing to the database. - - - - - Indicates whether to use transactions when writing to the database. - - - - - Gets or sets the database connection string that is used to connect to - the database. - - - The database connection string used to connect to the database. - - - - The connections string is specific to the connection type. - See for more information. - - - Connection string for MS Access via ODBC: - "DSN=MS Access Database;UID=admin;PWD=;SystemDB=C:\data\System.mdw;SafeTransactions = 0;FIL=MS Access;DriverID = 25;DBQ=C:\data\train33.mdb" - - Another connection string for MS Access via ODBC: - "Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Work\cvs_root\log4net-1.2\access.mdb;UID=;PWD=;" - - Connection string for MS Access via OLE DB: - "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\cvs_root\log4net-1.2\access.mdb;User Id=;Password=;" - - - - - Gets or sets the type name of the connection - that should be created. - - - The type name of the connection. - - - - The type name of the ADO.NET provider to use. - - - The default is to use the OLE DB provider. - - - Use the OLE DB Provider. This is the default value. - System.Data.OleDb.OleDbConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Use the MS SQL Server Provider. - System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Use the ODBC Provider. - Microsoft.Data.Odbc.OdbcConnection,Microsoft.Data.Odbc,version=1.0.3300.0,publicKeyToken=b77a5c561934e089,culture=neutral - This is an optional package that you can download from - http://msdn.microsoft.com/downloads - search for ODBC .NET Data Provider. - - Use the Oracle Provider. - System.Data.OracleClient.OracleConnection, System.Data.OracleClient, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - This is an optional package that you can download from - http://msdn.microsoft.com/downloads - search for .NET Managed Provider for Oracle. - - - - - Gets or sets the command text that is used to insert logging events - into the database. - - - The command text used to insert logging events into the database. - - - - Either the text of the prepared statement or the - name of the stored procedure to execute to write into - the database. - - - The property determines if - this text is a prepared statement or a stored procedure. - - - - - - Gets or sets the command type to execute. - - - The command type to execute. - - - - This value may be either (System.Data.CommandType.Text) to specify - that the is a prepared statement to execute, - or (System.Data.CommandType.StoredProcedure) to specify that the - property is the name of a stored procedure - to execute. - - - The default value is (System.Data.CommandType.Text). - - - - - - Should transactions be used to insert logging events in the database. - - - true if transactions should be used to insert logging events in - the database, otherwise false. The default value is true. - - - - Gets or sets a value that indicates whether transactions should be used - to insert logging events in the database. - - - When set a single transaction will be used to insert the buffered events - into the database. Otherwise each event will be inserted without using - an explicit transaction. - - - - - - Gets or sets the used to call the NetSend method. - - - The used to call the NetSend method. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - Should this appender try to reconnect to the database on error. - - - true if the appender should try to reconnect to the database after an - error has occurred, otherwise false. The default value is false, - i.e. not to try to reconnect. - - - - The default behaviour is for the appender not to try to reconnect to the - database if an error occurs. Subsequent logging events are discarded. - - - To force the appender to attempt to reconnect to the database set this - property to true. - - - When the appender attempts to connect to the database there may be a - delay of up to the connection timeout specified in the connection string. - This delay will block the calling application's thread. - Until the connection can be reestablished this potential delay may occur multiple times. - - - - - - Gets or sets the underlying . - - - The underlying . - - - creates a to insert - logging events into a database. Classes deriving from - can use this property to get or set this . Use the - underlying returned from if - you require access beyond that which provides. - - - - - Parameter type used by the . - - - - This class provides the basic database parameter properties - as defined by the interface. - - This type can be subclassed to provide database specific - functionality. The two methods that are called externally are - and . - - - - - - Initializes a new instance of the class. - - - Default constructor for the AdoNetAppenderParameter class. - - - - - Prepare the specified database command object. - - The command to prepare. - - - Prepares the database command object by adding - this parameter to its collection of parameters. - - - - - - Renders the logging event and set the parameter value in the command. - - The command containing the parameter. - The event to be rendered. - - - Renders the logging event using this parameters layout - object. Sets the value of the parameter on the command object. - - - - - - The name of this parameter. - - - - - The database type for this parameter. - - - - - Flag to infer type rather than use the DbType - - - - - The precision for this parameter. - - - - - The scale for this parameter. - - - - - The size for this parameter. - - - - - The to use to render the - logging event into an object for this parameter. - - - - - Gets or sets the name of this parameter. - - - The name of this parameter. - - - - The name of this parameter. The parameter name - must match up to a named parameter to the SQL stored procedure - or prepared statement. - - - - - - Gets or sets the database type for this parameter. - - - The database type for this parameter. - - - - The database type for this parameter. This property should - be set to the database type from the - enumeration. See . - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the type from the value. - - - - - - - Gets or sets the precision for this parameter. - - - The precision for this parameter. - - - - The maximum number of digits used to represent the Value. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the precision from the value. - - - - - - - Gets or sets the scale for this parameter. - - - The scale for this parameter. - - - - The number of decimal places to which Value is resolved. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the scale from the value. - - - - - - - Gets or sets the size for this parameter. - - - The size for this parameter. - - - - The maximum size, in bytes, of the data within the column. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the size from the value. - - - - - - - Gets or sets the to use to - render the logging event into an object for this - parameter. - - - The used to render the - logging event into an object for this parameter. - - - - The that renders the value for this - parameter. - - - The can be used to adapt - any into a - for use in the property. - - - - - - Appends logging events to the terminal using ANSI color escape sequences. - - - - AnsiColorTerminalAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. It also allows the color of a specific level of message to be set. - - - This appender expects the terminal to understand the VT100 control set - in order to interpret the color codes. If the terminal or console does not - understand the control codes the behavior is not defined. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes each message to the System.Console.Out or - System.Console.Error that is set at the time the event is appended. - Therefore it is possible to programmatically redirect the output of this appender - (for example NUnit does this to capture program output). While this is the desired - behavior of this appender it may have security implications in your application. - - - When configuring the ANSI colored terminal appender, a mapping should be - specified to map a logging level to a color. For example: - - - - - - - - - - - - - - - The Level is the standard log4net logging level and ForeColor and BackColor can be any - of the following values: - - Blue - Green - Red - White - Yellow - Purple - Cyan - - These color values cannot be combined together to make new colors. - - - The attributes can be any combination of the following: - - Brightforeground is brighter - Dimforeground is dimmer - Underscoremessage is underlined - Blinkforeground is blinking (does not work on all terminals) - Reverseforeground and background are reversed - Hiddenoutput is hidden - Strikethroughmessage has a line through it - - While any of these attributes may be combined together not all combinations - work well together, for example setting both Bright and Dim attributes makes - no sense. - - - Patrick Wagstrom - Nicko Cadell - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Ansi code to reset terminal - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Add a mapping of level to color - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the foreground and background colours - for a level. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to color mappings set on this appender. - - - - - - Flag to write output to the error stream rather than the standard output stream - - - - - Mapping from level object to color value - - - - - Target is the value of the console output stream. - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - The enum of possible display attributes - - - - The following flags can be combined together to - form the ANSI color attributes. - - - - - - - text is bright - - - - - text is dim - - - - - text is underlined - - - - - text is blinking - - - Not all terminals support this attribute - - - - - text and background colors are reversed - - - - - text is hidden - - - - - text is displayed with a strikethrough - - - - - The enum of possible foreground or background color values for - use with the color mapping method - - - - The output can be in one for the following ANSI colors. - - - - - - - color is black - - - - - color is red - - - - - color is green - - - - - color is yellow - - - - - color is blue - - - - - color is magenta - - - - - color is cyan - - - - - color is white - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and the color it should be displayed in. - - - - - - An entry in the - - - - This is an abstract base class for types that are stored in the - object. - - - Nicko Cadell - - - - Default protected constructor - - - - Default protected constructor - - - - - - Initialize any options defined on this entry - - - - Should be overridden by any classes that need to initialise based on their options - - - - - - The level that is the key for this mapping - - - The that is the key for this mapping - - - - Get or set the that is the key for this - mapping subclass. - - - - - - Initialize the options for the object - - - - Combine the and together - and append the attributes. - - - - - - The mapped foreground color for the specified level - - - - Required property. - The mapped foreground color for the specified level - - - - - - The mapped background color for the specified level - - - - Required property. - The mapped background color for the specified level - - - - - - The color attributes for the specified level - - - - Required property. - The color attributes for the specified level - - - - - - The combined , and - suitable for setting the ansi terminal color. - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a AppenderCollection instance. - - list to create a readonly wrapper arround - - An AppenderCollection wrapper that is read-only. - - - - - An empty readonly static AppenderCollection - - - - - Initializes a new instance of the AppenderCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the AppenderCollection class - that has the specified initial capacity. - - - The number of elements that the new AppenderCollection is initially capable of storing. - - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified AppenderCollection. - - The AppenderCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - - Copies the entire AppenderCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire AppenderCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the AppenderCollection. - - The to be added to the end of the AppenderCollection. - The index at which the value has been added. - - - - Removes all elements from the AppenderCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the AppenderCollection. - - The to check for. - true if is found in the AppenderCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the AppenderCollection. - - The to locate in the AppenderCollection. - - The zero-based index of the first occurrence of - in the entire AppenderCollection, if found; otherwise, -1. - - - - - Inserts an element into the AppenderCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the AppenderCollection. - - The to remove from the AppenderCollection. - - The specified was not found in the AppenderCollection. - - - - - Removes the element at the specified index of the AppenderCollection. - - The zero-based index of the element to remove. - - is less than zero - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the AppenderCollection. - - An for the entire AppenderCollection. - - - - Adds the elements of another AppenderCollection to the current AppenderCollection. - - The AppenderCollection whose elements should be added to the end of the current AppenderCollection. - The new of the AppenderCollection. - - - - Adds the elements of a array to the current AppenderCollection. - - The array whose elements should be added to the end of the AppenderCollection. - The new of the AppenderCollection. - - - - Adds the elements of a collection to the current AppenderCollection. - - The collection whose elements should be added to the end of the AppenderCollection. - The new of the AppenderCollection. - - - - Sets the capacity to the actual number of elements. - - - - - Return the collection elements as an array - - the array - - - - is less than zero - -or- - is equal to or greater than . - - - - - is less than zero - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the AppenderCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - The zero-based index of the element to get or set. - - is less than zero - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false - - - - Gets or sets the number of elements the AppenderCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - - A value - - - - - Supports simple iteration over a . - - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - - - - - Appends log events to the ASP.NET system. - - - - - Diagnostic information and tracing messages that you specify are appended to the output - of the page that is sent to the requesting browser. Optionally, you can view this information - from a separate trace viewer (Trace.axd) that displays trace information for every page in a - given application. - - - Trace statements are processed and displayed only when tracing is enabled. You can control - whether tracing is displayed to a page, to the trace viewer, or both. - - - The logging event is passed to the or - method depending on the level of the logging event. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Write the logging event to the ASP.NET trace - - the event to log - - - Write the logging event to the ASP.NET trace - HttpContext.Current.Trace - (). - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Buffers events and then forwards them to attached appenders. - - - - The events are buffered in this appender until conditions are - met to allow the appender to deliver the events to the attached - appenders. See for the - conditions that cause the buffer to be sent. - - The forwarding appender can be used to specify different - thresholds and filters for the same appender at different locations - within the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Interface for attaching appenders to objects. - - - - Interface for attaching, removing and retrieving appenders. - - - Nicko Cadell - Gert Driesen - - - - Attaches an appender. - - The appender to add. - - - Add the specified appender. The implementation may - choose to allow or deny duplicate appenders. - - - - - - Gets an attached appender with the specified name. - - The name of the appender to get. - - The appender with the name specified, or null if no appender with the - specified name is found. - - - - Returns an attached appender with the specified. - If no appender with the specified name is found null will be - returned. - - - - - - Removes all attached appenders. - - - - Removes and closes all attached appenders - - - - - - Removes the specified appender from the list of attached appenders. - - The appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Gets all attached appenders. - - - A collection of attached appenders. - - - - Gets a collection of attached appenders. - If there are no attached appenders the - implementation should return an empty - collection rather than null. - - - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Send the events. - - The events that need to be send. - - - Forwards the events to the attached appenders. - - - - - - Adds an to the list of appenders of this - instance. - - The to add to this appender. - - - If the specified is already in the list of - appenders, then it won't be added again. - - - - - - Looks for the appender with the specified name. - - The name of the appender to lookup. - - The appender with the specified name, or null. - - - - Get the named appender attached to this buffering appender. - - - - - - Removes all previously added appenders from this appender. - - - - This is useful when re-reading configuration information. - - - - - - Removes the specified appender from the list of appenders. - - The appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Implementation of the interface - - - - - Gets the appenders contained in this appender as an - . - - - If no appenders can be found, then an - is returned. - - - A collection of the appenders in this appender. - - - - - Appends logging events to the console. - - - - ColoredConsoleAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. It also allows the color of a specific type of message to be set. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes directly to the application's attached console - not to the System.Console.Out or System.Console.Error TextWriter. - The System.Console.Out and System.Console.Error streams can be - programmatically redirected (for example NUnit does this to capture program output). - This appender will ignore these redirections because it needs to use Win32 - API calls to colorize the output. To respect these redirections the - must be used. - - - When configuring the colored console appender, mapping should be - specified to map a logging level to a color. For example: - - - - - - - - - - - - - - The Level is the standard log4net logging level and ForeColor and BackColor can be any - combination of the following values: - - Blue - Green - Red - White - Yellow - Purple - Cyan - HighIntensity - - - - Rick Hobbs - Nicko Cadell - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - flag set to true to write to the console error stream - - When is set to true, output is written to - the standard error output stream. Otherwise, output is written to the standard - output stream. - - - - - Add a mapping of level to color - done by the config file - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the foreground and background colors - for a level. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to color mappings set on this appender. - - - - - - Flag to write output to the error stream rather than the standard output stream - - - - - Mapping from level object to color value - - - - - The console output stream writer to write to - - - - This writer is not thread safe. - - - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - The enum of possible color values for use with the color mapping method - - - - The following flags can be combined together to - form the colors. - - - - - - - color is blue - - - - - color is green - - - - - color is red - - - - - color is white - - - - - color is yellow - - - - - color is purple - - - - - color is cyan - - - - - color is intensified - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and the color it should be displayed in. - - - - - - Initialize the options for the object - - - - Combine the and together. - - - - - - The mapped foreground color for the specified level - - - - Required property. - The mapped foreground color for the specified level. - - - - - - The mapped background color for the specified level - - - - Required property. - The mapped background color for the specified level. - - - - - - The combined and suitable for - setting the console color. - - - - - Appends logging events to the console. - - - - ConsoleAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes each message to the System.Console.Out or - System.Console.Error that is set at the time the event is appended. - Therefore it is possible to programmatically redirect the output of this appender - (for example NUnit does this to capture program output). While this is the desired - behavior of this appender it may have security implications in your application. - - - Nicko Cadell - Gert Driesen - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - flag set to true to write to the console error stream - - When is set to true, output is written to - the standard error output stream. Otherwise, output is written to the standard - output stream. - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appends log events to the system. - - - - The application configuration file can be used to control what listeners - are actually used. See the MSDN documentation for the - class for details on configuring the - debug system. - - - Events are written using the - method. The event's logger name is passed as the value for the category name to the Write method. - - - Nicko Cadell - - - - Initializes a new instance of the . - - - - Default constructor. - - - - - - Initializes a new instance of the - with a specified layout. - - The layout to use with this appender. - - - Obsolete constructor. - - - - - - Writes the logging event to the system. - - The event to log. - - - Writes the logging event to the system. - If is true then the - is called. - - - - - - Immediate flush means that the underlying writer or output stream - will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logs events are not actually written to persistent media if and - when the application crashes. - - - The default value is true. - - - - - Gets or sets a value that indicates whether the appender will - flush at the end of each write. - - - The default behavior is to flush at the end of each - write. If the option is set tofalse, then the underlying - stream can defer writing to physical medium to a later time. - - - Avoiding the flush operation at the end of each append results - in a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Writes events to the system event log. - - - - The EventID of the event log entry can be - set using the EventLogEventID property () - on the . - - - There is a limit of 32K characters for an event log message - - - When configuring the EventLogAppender a mapping can be - specified to map a logging level to an event log entry type. For example: - - - <mapping> - <level value="ERROR" /> - <eventLogEntryType value="Error" /> - </mapping> - <mapping> - <level value="DEBUG" /> - <eventLogEntryType value="Information" /> - </mapping> - - - The Level is the standard log4net logging level and eventLogEntryType can be any value - from the enum, i.e.: - - Erroran error event - Warninga warning event - Informationan informational event - - - - Aspi Havewala - Douglas de la Torre - Nicko Cadell - Gert Driesen - Thomas Voss - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initializes a new instance of the class - with the specified . - - The to use with this appender. - - - Obsolete constructor. - - - - - - Add a mapping of level to - done by the config file - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the event log entry type for a level. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Create an event log source - - - Uses different API calls under NET_2_0 - - - - - This method is called by the - method. - - the event to log - - Writes the event to the system event log using the - . - - If the event has an EventID property (see ) - set then this integer will be used as the event log event id. - - - There is a limit of 32K characters for an event log message - - - - - - Get the equivalent for a - - the Level to convert to an EventLogEntryType - The equivalent for a - - Because there are fewer applicable - values to use in logging levels than there are in the - this is a one way mapping. There is - a loss of information during the conversion. - - - - - The log name is the section in the event logs where the messages - are stored. - - - - - Name of the application to use when logging. This appears in the - application column of the event log named by . - - - - - The name of the machine which holds the event log. This is - currently only allowed to be '.' i.e. the current machine. - - - - - Mapping from level object to EventLogEntryType - - - - - The security context to use for privileged calls - - - - - The name of the log where messages will be stored. - - - The string name of the log where messages will be stored. - - - This is the name of the log as it appears in the Event Viewer - tree. The default value is to log into the Application - log, this is where most applications write their events. However - if you need a separate log for your application (or applications) - then you should set the appropriately. - This should not be used to distinguish your event log messages - from those of other applications, the - property should be used to distinguish events. This property should be - used to group together events into a single log. - - - - - - Property used to set the Application name. This appears in the - event logs when logging. - - - The string used to distinguish events from different sources. - - - Sets the event log source property. - - - - - This property is used to return the name of the computer to use - when accessing the event logs. Currently, this is the current - computer, denoted by a dot "." - - - The string name of the machine holding the event log that - will be logged into. - - - This property cannot be changed. It is currently set to '.' - i.e. the local machine. This may be changed in future. - - - - - Gets or sets the used to write to the EventLog. - - - The used to write to the EventLog. - - - - The system security context used to write to the EventLog. - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and its event log entry type. - - - - - - The for this entry - - - - Required property. - The for this entry - - - - - - Appends logging events to a file. - - - - Logging events are sent to the file specified by - the property. - - - The file can be opened in either append or overwrite mode - by specifying the property. - If the file path is relative it is taken as relative from - the application base directory. The file encoding can be - specified by setting the property. - - - The layout's and - values will be written each time the file is opened and closed - respectively. If the property is - then the file may contain multiple copies of the header and footer. - - - This appender will first try to open the file for writing when - is called. This will typically be during configuration. - If the file cannot be opened for writing the appender will attempt - to open the file again each time a message is logged to the appender. - If the file cannot be opened for writing when a message is logged then - the message will be discarded by this appender. - - - The supports pluggable file locking models via - the property. - The default behavior, implemented by - is to obtain an exclusive write lock on the file until this appender is closed. - The alternative model, , only holds a - write lock while the appender is writing a logging event. - - - Nicko Cadell - Gert Driesen - Rodrigo B. de Oliveira - Douglas de la Torre - Niall Daley - - - - Sends logging events to a . - - - - An Appender that writes to a . - - - This appender may be used stand alone if initialized with an appropriate - writer, however it is typically used as a base class for an appender that - can open a to write to. - - - Nicko Cadell - Gert Driesen - Douglas de la Torre - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initializes a new instance of the class and - sets the output destination to a new initialized - with the specified . - - The layout to use with this appender. - The to output to. - - - Obsolete constructor. - - - - - - Initializes a new instance of the class and sets - the output destination to the specified . - - The layout to use with this appender - The to output to - - The must have been previously opened. - - - - Obsolete constructor. - - - - - - This method determines if there is a sense in attempting to append. - - - - This method checked if an output target has been set and if a - layout has been set. - - - false if any of the preconditions fail. - - - - This method is called by the - method. - - The event to log. - - - Writes a log statement to the output stream if the output stream exists - and is writable. - - - The format of the output will depend on the appender's layout. - - - - - - This method is called by the - method. - - The array of events to log. - - - This method writes all the bulk logged events to the output writer - before flushing the stream. - - - - - - Close this appender instance. The underlying stream or writer is also closed. - - - Closed appenders cannot be reused. - - - - - Writes the footer and closes the underlying . - - - - Writes the footer and closes the underlying . - - - - - - Closes the underlying . - - - - Closes the underlying . - - - - - - Clears internal references to the underlying - and other variables. - - - - Subclasses can override this method for an alternate closing behavior. - - - - - - Writes a footer as produced by the embedded layout's property. - - - - Writes a footer as produced by the embedded layout's property. - - - - - - Writes a header produced by the embedded layout's property. - - - - Writes a header produced by the embedded layout's property. - - - - - - Called to allow a subclass to lazily initialize the writer - - - - This method is called when an event is logged and the or - have not been set. This allows a subclass to - attempt to initialize the writer multiple times. - - - - - - This is the where logging events - will be written to. - - - - - Immediate flush means that the underlying - or output stream will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logging events are not actually persisted if and when the application - crashes. - - - The default value is true. - - - - - - Gets or set whether the appender will flush at the end - of each append operation. - - - - The default behavior is to flush at the end of each - append operation. - - - If this option is set to false, then the underlying - stream can defer persisting the logging event to a later - time. - - - - Avoiding the flush operation at the end of each append results in - a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - Sets the where the log output will go. - - - - The specified must be open and writable. - - - The will be closed when the appender - instance is closed. - - - Note: Logging to an unopened will fail. - - - - - - Gets or set the and the underlying - , if any, for this appender. - - - The for this appender. - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Gets or sets the where logging events - will be written to. - - - The where logging events are written. - - - - This is the where logging events - will be written to. - - - - - - Default constructor - - - - Default constructor - - - - - - Construct a new appender using the layout, file and append mode. - - the layout to use with this appender - the full path to the file to write to - flag to indicate if the file should be appended to - - - Obsolete constructor. - - - - - - Construct a new appender using the layout and file specified. - The file will be appended to. - - the layout to use with this appender - the full path to the file to write to - - - Obsolete constructor. - - - - - - Activate the options on the file appender. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - This will cause the file to be opened. - - - - - - Closes any previously opened file and calls the parent's . - - - - Resets the filename and the file stream. - - - - - - Called to initialize the file writer - - - - Will be called for each logged message until the file is - successfully opened. - - - - - - This method is called by the - method. - - The event to log. - - - Writes a log statement to the output stream if the output stream exists - and is writable. - - - The format of the output will depend on the appender's layout. - - - - - - This method is called by the - method. - - The array of events to log. - - - Acquires the output file locks once before writing all the events to - the stream. - - - - - - Writes a footer as produced by the embedded layout's property. - - - - Writes a footer as produced by the embedded layout's property. - - - - - - Writes a header produced by the embedded layout's property. - - - - Writes a header produced by the embedded layout's property. - - - - - - Closes the underlying . - - - - Closes the underlying . - - - - - - Closes the previously opened file. - - - - Writes the to the file and then - closes the file. - - - - - - Sets and opens the file where the log output will go. The specified file must be writable. - - The path to the log file. Must be a fully qualified path. - If true will append to fileName. Otherwise will truncate fileName - - - Calls but guarantees not to throw an exception. - Errors are passed to the . - - - - - - Sets and opens the file where the log output will go. The specified file must be writable. - - The path to the log file. Must be a fully qualified path. - If true will append to fileName. Otherwise will truncate fileName - - - If there was already an opened file, then the previous file - is closed first. - - - This method will ensure that the directory structure - for the specified exists. - - - - - - Sets the quiet writer used for file output - - the file stream that has been opened for writing - - - This implementation of creates a - over the and passes it to the - method. - - - This method can be overridden by sub classes that want to wrap the - in some way, for example to encrypt the output - data using a System.Security.Cryptography.CryptoStream. - - - - - - Sets the quiet writer being used. - - the writer over the file stream that has been opened for writing - - - This method can be overridden by sub classes that want to - wrap the in some way. - - - - - - Convert a path into a fully qualified path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - - - - Flag to indicate if we should append to the file - or overwrite the file. The default is to append. - - - - - The name of the log file. - - - - - The encoding to use for the file stream. - - - - - The security context to use for privileged calls - - - - - The stream to log to. Has added locking semantics - - - - - The locking model to use - - - - - Gets or sets the path to the file that logging will be written to. - - - The path to the file that logging will be written to. - - - - If the path is relative it is taken as relative from - the application base directory. - - - - - - Gets or sets a flag that indicates whether the file should be - appended to or overwritten. - - - Indicates whether the file should be appended to or overwritten. - - - - If the value is set to false then the file will be overwritten, if - it is set to true then the file will be appended to. - - The default value is true. - - - - - Gets or sets used to write to the file. - - - The used to write to the file. - - - - The default encoding set is - which is the encoding for the system's current ANSI code page. - - - - - - Gets or sets the used to write to the file. - - - The used to write to the file. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - Gets or sets the used to handle locking of the file. - - - The used to lock the file. - - - - Gets or sets the used to handle locking of the file. - - - There are two built in locking models, and . - The former locks the file from the start of logging to the end and the - later lock only for the minimal amount of time when logging each message. - - - The default locking model is the . - - - - - - Write only that uses the - to manage access to an underlying resource. - - - - - True asynchronous writes are not supported, the implementation forces a synchronous write. - - - - - Exception base type for log4net. - - - - This type extends . It - does not add any new functionality but does differentiate the - type of exception being thrown. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - A message to include with the exception. - - - Initializes a new instance of the class with - the specified message. - - - - - - Constructor - - A message to include with the exception. - A nested exception to include. - - - Initializes a new instance of the class - with the specified message and inner exception. - - - - - - Serialization constructor - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Locking model base class - - - - Base class for the locking models available to the derived loggers. - - - - - - Open the output file - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Acquire the lock on the file in preparation for writing to it. - Return a stream pointing to the file. - must be called to release the lock on the output file. - - - - - - Release the lock on the file - - - - Release the lock on the file. No further writes will be made to the - stream until is called again. - - - - - - Gets or sets the for this LockingModel - - - The for this LockingModel - - - - The file appender this locking model is attached to and working on - behalf of. - - - The file appender is used to locate the security context and the error handler to use. - - - The value of this property will be set before is - called. - - - - - - Hold an exclusive lock on the output file - - - - Open the file once for writing and hold it open until is called. - Maintains an exclusive lock on the file during this time. - - - - - - Open the file specified and prepare for logging. - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Does nothing. The lock is already taken - - - - - - Release the lock on the file - - - - Does nothing. The lock will be released when the file is closed. - - - - - - Acquires the file lock for each write - - - - Opens the file once for each / cycle, - thus holding the lock for the minimal amount of time. This method of locking - is considerably slower than but allows - other processes to move/delete the log file whilst logging continues. - - - - - - Prepares to open the file when the first message is logged. - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Acquire the lock on the file in preparation for writing to it. - Return a stream pointing to the file. - must be called to release the lock on the output file. - - - - - - Release the lock on the file - - - - Release the lock on the file. No further writes will be made to the - stream until is called again. - - - - - - This appender forwards logging events to attached appenders. - - - - The forwarding appender can be used to specify different thresholds - and filters for the same appender at different locations within the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Forward the logging event to the attached appenders - - The event to log. - - - Delivers the logging event to all the attached appenders. - - - - - - Forward the logging events to the attached appenders - - The array of events to log. - - - Delivers the logging events to all the attached appenders. - - - - - - Adds an to the list of appenders of this - instance. - - The to add to this appender. - - - If the specified is already in the list of - appenders, then it won't be added again. - - - - - - Looks for the appender with the specified name. - - The name of the appender to lookup. - - The appender with the specified name, or null. - - - - Get the named appender attached to this appender. - - - - - - Removes all previously added appenders from this appender. - - - - This is useful when re-reading configuration information. - - - - - - Removes the specified appender from the list of appenders. - - The appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Implementation of the interface - - - - - Gets the appenders contained in this appender as an - . - - - If no appenders can be found, then an - is returned. - - - A collection of the appenders in this appender. - - - - - Logs events to a local syslog service. - - - - This appender uses the POSIX libc library functions openlog, syslog, and closelog. - If these functions are not available on the local system then this appender will not work! - - - The functions openlog, syslog, and closelog are specified in SUSv2 and - POSIX 1003.1-2001 standards. These are used to log messages to the local syslog service. - - - This appender talks to a local syslog service. If you need to log to a remote syslog - daemon and you cannot configure your local syslog service to do this you may be - able to use the to log via UDP. - - - Syslog messages must have a facility and and a severity. The severity - is derived from the Level of the logging event. - The facility must be chosen from the set of defined syslog - values. The facilities list is predefined - and cannot be extended. - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - Rob Lyon - Nicko Cadell - - - - Initializes a new instance of the class. - - - This instance of the class is set up to write - to a local syslog service. - - - - - Add a mapping of level to severity - - The mapping to add - - - Adds a to this appender. - - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to a remote syslog daemon. - - - The format of the output will depend on the appender's layout. - - - - - - Close the syslog when the appender is closed - - - - Close the syslog when the appender is closed - - - - - - Translates a log4net level to a syslog severity. - - A log4net level. - A syslog severity. - - - Translates a log4net level to a syslog severity. - - - - - - Generate a syslog priority. - - The syslog facility. - The syslog severity. - A syslog priority. - - - - The facility. The default facility is . - - - - - The message identity - - - - - Marshaled handle to the identity string. We have to hold on to the - string as the openlog and syslog APIs just hold the - pointer to the ident and dereference it for each log message. - - - - - Mapping from level object to syslog severity - - - - - Open connection to system logger. - - - - - Generate a log message. - - - - The libc syslog method takes a format string and a variable argument list similar - to the classic printf function. As this type of vararg list is not supported - by C# we need to specify the arguments explicitly. Here we have specified the - format string with a single message argument. The caller must set the format - string to "%s". - - - - - - Close descriptor used to write to system logger. - - - - - Message identity - - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - - - - Syslog facility - - - Set to one of the values. The list of - facilities is predefined and cannot be extended. The default value - is . - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - syslog severities - - - - The log4net Level maps to a syslog severity using the - method and the - class. The severity is set on . - - - - - - system is unusable - - - - - action must be taken immediately - - - - - critical conditions - - - - - error conditions - - - - - warning conditions - - - - - normal but significant condition - - - - - informational - - - - - debug-level messages - - - - - syslog facilities - - - - The syslog facility defines which subsystem the logging comes from. - This is set on the property. - - - - - - kernel messages - - - - - random user-level messages - - - - - mail system - - - - - system daemons - - - - - security/authorization messages - - - - - messages generated internally by syslogd - - - - - line printer subsystem - - - - - network news subsystem - - - - - UUCP subsystem - - - - - clock (cron/at) daemon - - - - - security/authorization messages (private) - - - - - ftp daemon - - - - - NTP subsystem - - - - - log audit - - - - - log alert - - - - - clock daemon - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - - - The mapped syslog severity for the specified level - - - - Required property. - The mapped syslog severity for the specified level - - - - - - Stores logging events in an array. - - - - The memory appender stores all the logging events - that are appended in an in-memory array. - - - Use the method to get - the current list of events that have been appended. - - - Use the method to clear the - current list of events. - - - Julian Biddle - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Gets the events that have been logged. - - The events that have been logged - - - Gets the events that have been logged. - - - - - - This method is called by the method. - - the event to log - - Stores the in the events list. - - - - - Clear the list of events - - - Clear the list of events - - - - - The list of events that have been appended. - - - - - Value indicating which fields in the event should be fixed - - - By default all fields are fixed - - - - - Gets or sets a value indicating whether only part of the logging event - data should be fixed. - - - true if the appender should only fix part of the logging event - data, otherwise false. The default is false. - - - - Setting this property to true will cause only part of the event - data to be fixed and stored in the appender, hereby improving performance. - - - See for more information. - - - - - - Gets or sets the fields that will be fixed in the event - - - - The logging event needs to have certain thread specific values - captured before it can be buffered. See - for details. - - - - - - Logs entries by sending network messages using the - native function. - - - - You can send messages only to names that are active - on the network. If you send the message to a user name, - that user must be logged on and running the Messenger - service to receive the message. - - - The receiver will get a top most window displaying the - messages one at a time, therefore this appender should - not be used to deliver a high volume of messages. - - - The following table lists some possible uses for this appender : - - - - - Action - Property Value(s) - - - Send a message to a user account on the local machine - - - = <name of the local machine> - - - = <user name> - - - - - Send a message to a user account on a remote machine - - - = <name of the remote machine> - - - = <user name> - - - - - Send a message to a domain user account - - - = <name of a domain controller | uninitialized> - - - = <user name> - - - - - Send a message to all the names in a workgroup or domain - - - = <workgroup name | domain name>* - - - - - Send a message from the local machine to a remote machine - - - = <name of the local machine | uninitialized> - - - = <name of the remote machine> - - - - - - - Note : security restrictions apply for sending - network messages, see - for more information. - - - - - An example configuration section to log information - using this appender from the local machine, named - LOCAL_PC, to machine OPERATOR_PC : - - - - - - - - - - Nicko Cadell - Gert Driesen - - - - The DNS or NetBIOS name of the server on which the function is to execute. - - - - - The sender of the network message. - - - - - The message alias to which the message should be sent. - - - - - The security context to use for privileged calls - - - - - Initializes the appender. - - - The default constructor initializes all fields to their default values. - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The appender will be ignored if no was specified. - - - The required property was not specified. - - - - This method is called by the method. - - The event to log. - - - Sends the event using a network message. - - - - - - Sends a buffer of information to a registered message alias. - - The DNS or NetBIOS name of the server on which the function is to execute. - The message alias to which the message buffer should be sent - The originator of the message. - The message text. - The length, in bytes, of the message text. - - - The following restrictions apply for sending network messages: - - - - - Platform - Requirements - - - Windows NT - - - No special group membership is required to send a network message. - - - Admin, Accounts, Print, or Server Operator group membership is required to - successfully send a network message on a remote server. - - - - - Windows 2000 or later - - - If you send a message on a domain controller that is running Active Directory, - access is allowed or denied based on the access control list (ACL) for the securable - object. The default ACL permits only Domain Admins and Account Operators to send a network message. - - - On a member server or workstation, only Administrators and Server Operators can send a network message. - - - - - - - For more information see Security Requirements for the Network Management Functions. - - - - - If the function succeeds, the return value is zero. - - - - - - Gets or sets the sender of the message. - - - The sender of the message. - - - If this property is not specified, the message is sent from the local computer. - - - - - Gets or sets the message alias to which the message should be sent. - - - The recipient of the message. - - - This property should always be specified in order to send a message. - - - - - Gets or sets the DNS or NetBIOS name of the remote server on which the function is to execute. - - - DNS or NetBIOS name of the remote server on which the function is to execute. - - - - For Windows NT 4.0 and earlier, the string should begin with \\. - - - If this property is not specified, the local computer is used. - - - - - - Gets or sets the used to call the NetSend method. - - - The used to call the NetSend method. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appends log events to the OutputDebugString system. - - - - OutputDebugStringAppender appends log events to the - OutputDebugString system. - - - The string is passed to the native OutputDebugString - function. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Write the logging event to the output debug string API - - the event to log - - - Write the logging event to the output debug string API - - - - - - Stub for OutputDebugString native method - - the string to output - - - Stub for OutputDebugString native method - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Logs events to a remote syslog daemon. - - - - The BSD syslog protocol is used to remotely log to - a syslog daemon. The syslogd listens for for messages - on UDP port 514. - - - The syslog UDP protocol is not authenticated. Most syslog daemons - do not accept remote log messages because of the security implications. - You may be able to use the LocalSyslogAppender to talk to a local - syslog service. - - - There is an RFC 3164 that claims to document the BSD Syslog Protocol. - This RFC can be seen here: http://www.faqs.org/rfcs/rfc3164.html. - This appender generates what the RFC calls an "Original Device Message", - i.e. does not include the TIMESTAMP or HOSTNAME fields. By observation - this format of message will be accepted by all current syslog daemon - implementations. The daemon will attach the current time and the source - hostname or IP address to any messages received. - - - Syslog messages must have a facility and and a severity. The severity - is derived from the Level of the logging event. - The facility must be chosen from the set of defined syslog - values. The facilities list is predefined - and cannot be extended. - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - Rob Lyon - Nicko Cadell - - - - Sends logging events as connectionless UDP datagrams to a remote host or a - multicast group using an . - - - - UDP guarantees neither that messages arrive, nor that they arrive in the correct order. - - - To view the logging results, a custom application can be developed that listens for logging - events. - - - When decoding events send via this appender remember to use the same encoding - to decode the events as was used to send the events. See the - property to specify the encoding to use. - - - - This example shows how to log receive logging events that are sent - on IP address 244.0.0.1 and port 8080 to the console. The event is - encoded in the packet as a unicode string and it is decoded as such. - - IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Any, 0); - UdpClient udpClient; - byte[] buffer; - string loggingEvent; - - try - { - udpClient = new UdpClient(8080); - - while(true) - { - buffer = udpClient.Receive(ref remoteEndPoint); - loggingEvent = System.Text.Encoding.Unicode.GetString(buffer); - Console.WriteLine(loggingEvent); - } - } - catch(Exception e) - { - Console.WriteLine(e.ToString()); - } - - - Dim remoteEndPoint as IPEndPoint - Dim udpClient as UdpClient - Dim buffer as Byte() - Dim loggingEvent as String - - Try - remoteEndPoint = new IPEndPoint(IPAddress.Any, 0) - udpClient = new UdpClient(8080) - - While True - buffer = udpClient.Receive(ByRef remoteEndPoint) - loggingEvent = System.Text.Encoding.Unicode.GetString(buffer) - Console.WriteLine(loggingEvent) - Wend - Catch e As Exception - Console.WriteLine(e.ToString()) - End Try - - - An example configuration section to log information using this appender to the - IP 224.0.0.1 on port 8080: - - - - - - - - - - Gert Driesen - Nicko Cadell - - - - Initializes a new instance of the class. - - - The default constructor initializes all fields to their default values. - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The appender will be ignored if no was specified or - an invalid remote or local TCP port number was specified. - - - The required property was not specified. - The TCP port number assigned to or is less than or greater than . - - - - This method is called by the method. - - The event to log. - - - Sends the event using an UDP datagram. - - - Exceptions are passed to the . - - - - - - Closes the UDP connection and releases all resources associated with - this instance. - - - - Disables the underlying and releases all managed - and unmanaged resources associated with the . - - - - - - Initializes the underlying connection. - - - - The underlying is initialized and binds to the - port number from which you intend to communicate. - - - Exceptions are passed to the . - - - - - - The IP address of the remote host or multicast group to which - the logging event will be sent. - - - - - The TCP port number of the remote host or multicast group to - which the logging event will be sent. - - - - - The cached remote endpoint to which the logging events will be sent. - - - - - The TCP port number from which the will communicate. - - - - - The instance that will be used for sending the - logging events. - - - - - The encoding to use for the packet. - - - - - Gets or sets the IP address of the remote host or multicast group to which - the underlying should sent the logging event. - - - The IP address of the remote host or multicast group to which the logging event - will be sent. - - - - Multicast addresses are identified by IP class D addresses (in the range 224.0.0.0 to - 239.255.255.255). Multicast packets can pass across different networks through routers, so - it is possible to use multicasts in an Internet scenario as long as your network provider - supports multicasting. - - - Hosts that want to receive particular multicast messages must register their interest by joining - the multicast group. Multicast messages are not sent to networks where no host has joined - the multicast group. Class D IP addresses are used for multicast groups, to differentiate - them from normal host addresses, allowing nodes to easily detect if a message is of interest. - - - Static multicast addresses that are needed globally are assigned by IANA. A few examples are listed in the table below: - - - - - IP Address - Description - - - 224.0.0.1 - - - Sends a message to all system on the subnet. - - - - - 224.0.0.2 - - - Sends a message to all routers on the subnet. - - - - - 224.0.0.12 - - - The DHCP server answers messages on the IP address 224.0.0.12, but only on a subnet. - - - - - - - A complete list of actually reserved multicast addresses and their owners in the ranges - defined by RFC 3171 can be found at the IANA web site. - - - The address range 239.0.0.0 to 239.255.255.255 is reserved for administrative scope-relative - addresses. These addresses can be reused with other local groups. Routers are typically - configured with filters to prevent multicast traffic in this range from flowing outside - of the local network. - - - - - - Gets or sets the TCP port number of the remote host or multicast group to which - the underlying should sent the logging event. - - - An integer value in the range to - indicating the TCP port number of the remote host or multicast group to which the logging event - will be sent. - - - The underlying will send messages to this TCP port number - on the remote host or multicast group. - - The value specified is less than or greater than . - - - - Gets or sets the TCP port number from which the underlying will communicate. - - - An integer value in the range to - indicating the TCP port number from which the underlying will communicate. - - - - The underlying will bind to this port for sending messages. - - - Setting the value to 0 (the default) will cause the udp client not to bind to - a local port. - - - The value specified is less than or greater than . - - - - Gets or sets used to write the packets. - - - The used to write the packets. - - - - The used to write the packets. - - - - - - Gets or sets the underlying . - - - The underlying . - - - creates a to send logging events - over a network. Classes deriving from can use this - property to get or set this . Use the underlying - returned from if you require access beyond that which - provides. - - - - - Gets or sets the cached remote endpoint to which the logging events should be sent. - - - The cached remote endpoint to which the logging events will be sent. - - - The method will initialize the remote endpoint - with the values of the and - properties. - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Syslog port 514 - - - - - Initializes a new instance of the class. - - - This instance of the class is set up to write - to a remote syslog daemon. - - - - - Add a mapping of level to severity - - The mapping to add - - - Add a mapping to this appender. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to a remote syslog daemon. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to syslog severity mappings set on this appender. - - - - - - Translates a log4net level to a syslog severity. - - A log4net level. - A syslog severity. - - - Translates a log4net level to a syslog severity. - - - - - - Generate a syslog priority. - - The syslog facility. - The syslog severity. - A syslog priority. - - - Generate a syslog priority. - - - - - - The facility. The default facility is . - - - - - The message identity - - - - - Mapping from level object to syslog severity - - - - - Message identity - - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - - - - Syslog facility - - - Set to one of the values. The list of - facilities is predefined and cannot be extended. The default value - is . - - - - - syslog severities - - - - The syslog severities. - - - - - - system is unusable - - - - - action must be taken immediately - - - - - critical conditions - - - - - error conditions - - - - - warning conditions - - - - - normal but significant condition - - - - - informational - - - - - debug-level messages - - - - - syslog facilities - - - - The syslog facilities - - - - - - kernel messages - - - - - random user-level messages - - - - - mail system - - - - - system daemons - - - - - security/authorization messages - - - - - messages generated internally by syslogd - - - - - line printer subsystem - - - - - network news subsystem - - - - - UUCP subsystem - - - - - clock (cron/at) daemon - - - - - security/authorization messages (private) - - - - - ftp daemon - - - - - NTP subsystem - - - - - log audit - - - - - log alert - - - - - clock daemon - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - - - The mapped syslog severity for the specified level - - - - Required property. - The mapped syslog severity for the specified level - - - - - - Delivers logging events to a remote logging sink. - - - - This Appender is designed to deliver events to a remote sink. - That is any object that implements the - interface. It delivers the events using .NET remoting. The - object to deliver events to is specified by setting the - appenders property. - - The RemotingAppender buffers events before sending them. This allows it to - make more efficient use of the remoting infrastructure. - - Once the buffer is full the events are still not sent immediately. - They are scheduled to be sent using a pool thread. The effect is that - the send occurs asynchronously. This is very important for a - number of non obvious reasons. The remoting infrastructure will - flow thread local variables (stored in the ), - if they are marked as , across the - remoting boundary. If the server is not contactable then - the remoting infrastructure will clear the - objects from the . To prevent a logging failure from - having side effects on the calling application the remoting call must be made - from a separate thread to the one used by the application. A - thread is used for this. If no thread is available then - the events will block in the thread pool manager until a thread is available. - - Because the events are sent asynchronously using pool threads it is possible to close - this appender before all the queued events have been sent. - When closing the appender attempts to wait until all the queued events have been sent, but - this will timeout after 30 seconds regardless. - - If this appender is being closed because the - event has fired it may not be possible to send all the queued events. During process - exit the runtime limits the time that a - event handler is allowed to run for. If the runtime terminates the threads before - the queued events have been sent then they will be lost. To ensure that all events - are sent the appender must be closed before the application exits. See - for details on how to shutdown - log4net programmatically. - - - Nicko Cadell - Gert Driesen - Daniel Cazzulino - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Send the contents of the buffer to the remote sink. - - - The events are not sent immediately. They are scheduled to be sent - using a pool thread. The effect is that the send occurs asynchronously. - This is very important for a number of non obvious reasons. The remoting - infrastructure will flow thread local variables (stored in the ), - if they are marked as , across the - remoting boundary. If the server is not contactable then - the remoting infrastructure will clear the - objects from the . To prevent a logging failure from - having side effects on the calling application the remoting call must be made - from a separate thread to the one used by the application. A - thread is used for this. If no thread is available then - the events will block in the thread pool manager until a thread is available. - - The events to send. - - - - Override base class close. - - - - This method waits while there are queued work items. The events are - sent asynchronously using work items. These items - will be sent once a thread pool thread is available to send them, therefore - it is possible to close the appender before all the queued events have been - sent. - - This method attempts to wait until all the queued events have been sent, but this - method will timeout after 30 seconds regardless. - - If the appender is being closed because the - event has fired it may not be possible to send all the queued events. During process - exit the runtime limits the time that a - event handler is allowed to run for. - - - - - A work item is being queued into the thread pool - - - - - A work item from the thread pool has completed - - - - - Send the contents of the buffer to the remote sink. - - - This method is designed to be used with the . - This method expects to be passed an array of - objects in the state param. - - the logging events to send - - - - The URL of the remote sink. - - - - - The local proxy (.NET remoting) for the remote logging sink. - - - - - The number of queued callbacks currently waiting or executing - - - - - Event used to signal when there are no queued work items - - - This event is set when there are no queued work items. In this - state it is safe to close the appender. - - - - - Gets or sets the URL of the well-known object that will accept - the logging events. - - - The well-known URL of the remote sink. - - - - The URL of the remoting sink that will accept logging events. - The sink must implement the - interface. - - - - - - Interface used to deliver objects to a remote sink. - - - This interface must be implemented by a remoting sink - if the is to be used - to deliver logging events to the sink. - - - - - Delivers logging events to the remote sink - - Array of events to log. - - - Delivers logging events to the remote sink - - - - - - Appender that rolls log files based on size or date or both. - - - - RollingFileAppender can roll log files based on size or date or both - depending on the setting of the property. - When set to the log file will be rolled - once its size exceeds the . - When set to the log file will be rolled - once the date boundary specified in the property - is crossed. - When set to the log file will be - rolled once the date boundary specified in the property - is crossed, but within a date boundary the file will also be rolled - once its size exceeds the . - When set to the log file will be rolled when - the appender is configured. This effectively means that the log file can be - rolled once per program execution. - - - A of few additional optional features have been added: - - Attach date pattern for current log file - Backup number increments for newer files - Infinite number of backups by file size - - - - - - For large or infinite numbers of backup files a - greater than zero is highly recommended, otherwise all the backup files need - to be renamed each time a new backup is created. - - - When Date/Time based rolling is used setting - to will reduce the number of file renamings to few or none. - - - - - - Changing or without clearing - the log file directory of backup files will cause unexpected and unwanted side effects. - - - - - If Date/Time based rolling is enabled this appender will attempt to roll existing files - in the directory without a Date/Time tag based on the last write date of the base log file. - The appender only rolls the log file when a message is logged. If Date/Time based rolling - is enabled then the appender will not roll the log file at the Date/Time boundary but - at the point when the next message is logged after the boundary has been crossed. - - - - The extends the and - has the same behavior when opening the log file. - The appender will first try to open the file for writing when - is called. This will typically be during configuration. - If the file cannot be opened for writing the appender will attempt - to open the file again each time a message is logged to the appender. - If the file cannot be opened for writing when a message is logged then - the message will be discarded by this appender. - - - When rolling a backup file necessitates deleting an older backup file the - file to be deleted is moved to a temporary name before being deleted. - - - - - A maximum number of backup files when rolling on date/time boundaries is not supported. - - - - Nicko Cadell - Gert Driesen - Aspi Havewala - Douglas de la Torre - Edward Smit - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Sets the quiet writer being used. - - - This method can be overridden by sub classes. - - the writer to set - - - - Write out a logging event. - - the event to write to file. - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Write out an array of logging events. - - the events to write to file. - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Performs any required rolling before outputting the next event - - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Creates and opens the file for logging. If - is false then the fully qualified name is determined and used. - - the name of the file to open - true to append to existing file - - This method will ensure that the directory structure - for the specified exists. - - - - - Get the current output file name - - the base file name - the output file name - - The output file name is based on the base fileName specified. - If is set then the output - file name is the same as the base file passed in. Otherwise - the output file depends on the date pattern, on the count - direction or both. - - - - - Determines curSizeRollBackups (only within the current roll point) - - - - - Generates a wildcard pattern that can be used to find all files - that are similar to the base file name. - - - - - - - Builds a list of filenames for all files matching the base filename plus a file - pattern. - - - - - - - Initiates a roll over if needed for crossing a date boundary since the last run. - - - - - Initializes based on existing conditions at time of . - - - - Initializes based on existing conditions at time of . - The following is done - - determine curSizeRollBackups (only within the current roll point) - initiates a roll over if needed for crossing a date boundary since the last run. - - - - - - - Does the work of bumping the 'current' file counter higher - to the highest count when an incremental file name is seen. - The highest count is either the first file (when count direction - is greater than 0) or the last file (when count direction less than 0). - In either case, we want to know the highest count that is present. - - - - - - - Takes a list of files and a base file name, and looks for - 'incremented' versions of the base file. Bumps the max - count up to the highest count seen. - - - - - - - Calculates the RollPoint for the datePattern supplied. - - the date pattern to calculate the check period for - The RollPoint that is most accurate for the date pattern supplied - - Essentially the date pattern is examined to determine what the - most suitable roll point is. The roll point chosen is the roll point - with the smallest period that can be detected using the date pattern - supplied. i.e. if the date pattern only outputs the year, month, day - and hour then the smallest roll point that can be detected would be - and hourly roll point as minutes could not be detected. - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Sets initial conditions including date/time roll over information, first check, - scheduledFilename, and calls to initialize - the current number of backups. - - - - - - Rollover the file(s) to date/time tagged file(s). - - set to true if the file to be rolled is currently open - - - Rollover the file(s) to date/time tagged file(s). - Resets curSizeRollBackups. - If fileIsOpen is set then the new file is opened (through SafeOpenFile). - - - - - - Renames file to file . - - Name of existing file to roll. - New name for file. - - - Renames file to file . It - also checks for existence of target file and deletes if it does. - - - - - - Test if a file exists at a specified path - - the path to the file - true if the file exists - - - Test if a file exists at a specified path - - - - - - Deletes the specified file if it exists. - - The file to delete. - - - Delete a file if is exists. - The file is first moved to a new filename then deleted. - This allows the file to be removed even when it cannot - be deleted, but it still can be moved. - - - - - - Implements file roll base on file size. - - - - If the maximum number of size based backups is reached - (curSizeRollBackups == maxSizeRollBackups) then the oldest - file is deleted -- its index determined by the sign of countDirection. - If countDirection < 0, then files - {File.1, ..., File.curSizeRollBackups -1} - are renamed to {File.2, ..., - File.curSizeRollBackups}. Moreover, File is - renamed File.1 and closed. - - - A new file is created to receive further log output. - - - If maxSizeRollBackups is equal to zero, then the - File is truncated with no backup files created. - - - If maxSizeRollBackups < 0, then File is - renamed if needed and no files are deleted. - - - - - - Implements file roll. - - the base name to rename - - - If the maximum number of size based backups is reached - (curSizeRollBackups == maxSizeRollBackups) then the oldest - file is deleted -- its index determined by the sign of countDirection. - If countDirection < 0, then files - {File.1, ..., File.curSizeRollBackups -1} - are renamed to {File.2, ..., - File.curSizeRollBackups}. - - - If maxSizeRollBackups is equal to zero, then the - File is truncated with no backup files created. - - - If maxSizeRollBackups < 0, then File is - renamed if needed and no files are deleted. - - - This is called by to rename the files. - - - - - - Get the start time of the next window for the current rollpoint - - the current date - the type of roll point we are working with - the start time for the next roll point an interval after the currentDateTime date - - - Returns the date of the next roll point after the currentDateTime date passed to the method. - - - The basic strategy is to subtract the time parts that are less significant - than the rollpoint from the current time. This should roll the time back to - the start of the time window for the current rollpoint. Then we add 1 window - worth of time and get the start time of the next window for the rollpoint. - - - - - - This object supplies the current date/time. Allows test code to plug in - a method to control this class when testing date/time based rolling. - - - - - The date pattern. By default, the pattern is set to ".yyyy-MM-dd" - meaning daily rollover. - - - - - The actual formatted filename that is currently being written to - or will be the file transferred to on roll over - (based on staticLogFileName). - - - - - The timestamp when we shall next recompute the filename. - - - - - Holds date of last roll over - - - - - The type of rolling done - - - - - The default maximum file size is 10MB - - - - - There is zero backup files by default - - - - - How many sized based backups have been made so far - - - - - The rolling file count direction. - - - - - The rolling mode used in this appender. - - - - - Cache flag set if we are rolling by date. - - - - - Cache flag set if we are rolling by size. - - - - - Value indicating whether to always log to the same file. - - - - - FileName provided in configuration. Used for rolling properly - - - - - The 1st of January 1970 in UTC - - - - - Gets or sets the date pattern to be used for generating file names - when rolling over on date. - - - The date pattern to be used for generating file names when rolling - over on date. - - - - Takes a string in the same format as expected by - . - - - This property determines the rollover schedule when rolling over - on date. - - - - - - Gets or sets the maximum number of backup files that are kept before - the oldest is erased. - - - The maximum number of backup files that are kept before the oldest is - erased. - - - - If set to zero, then there will be no backup files and the log file - will be truncated when it reaches . - - - If a negative number is supplied then no deletions will be made. Note - that this could result in very slow performance as a large number of - files are rolled over unless is used. - - - The maximum applies to each time based group of files and - not the total. - - - - - - Gets or sets the maximum size that the output file is allowed to reach - before being rolled over to backup files. - - - The maximum size in bytes that the output file is allowed to reach before being - rolled over to backup files. - - - - This property is equivalent to except - that it is required for differentiating the setter taking a - argument from the setter taking a - argument. - - - The default maximum file size is 10MB (10*1024*1024). - - - - - - Gets or sets the maximum size that the output file is allowed to reach - before being rolled over to backup files. - - - The maximum size that the output file is allowed to reach before being - rolled over to backup files. - - - - This property allows you to specify the maximum size with the - suffixes "KB", "MB" or "GB" so that the size is interpreted being - expressed respectively in kilobytes, megabytes or gigabytes. - - - For example, the value "10KB" will be interpreted as 10240 bytes. - - - The default maximum file size is 10MB. - - - If you have the option to set the maximum file size programmatically - consider using the property instead as this - allows you to set the size in bytes as a . - - - - - - Gets or sets the rolling file count direction. - - - The rolling file count direction. - - - - Indicates if the current file is the lowest numbered file or the - highest numbered file. - - - By default newer files have lower numbers ( < 0), - i.e. log.1 is most recent, log.5 is the 5th backup, etc... - - - >= 0 does the opposite i.e. - log.1 is the first backup made, log.5 is the 5th backup made, etc. - For infinite backups use >= 0 to reduce - rollover costs. - - The default file count direction is -1. - - - - - Gets or sets the rolling style. - - The rolling style. - - - The default rolling style is . - - - When set to this appender's - property is set to false, otherwise - the appender would append to a single file rather than rolling - the file each time it is opened. - - - - - - Gets or sets a value indicating whether to always log to - the same file. - - - true if always should be logged to the same file, otherwise false. - - - - By default file.log is always the current file. Optionally - file.log.yyyy-mm-dd for current formatted datePattern can by the currently - logging file (or file.log.curSizeRollBackup or even - file.log.yyyy-mm-dd.curSizeRollBackup). - - - This will make time based rollovers with a large number of backups - much faster as the appender it won't have to rename all the backups! - - - - - - Style of rolling to use - - - - Style of rolling to use - - - - - - Roll files once per program execution - - - - Roll files once per program execution. - Well really once each time this appender is - configured. - - - Setting this option also sets AppendToFile to - false on the RollingFileAppender, otherwise - this appender would just be a normal file appender. - - - - - - Roll files based only on the size of the file - - - - - Roll files based only on the date - - - - - Roll files based on both the size and date of the file - - - - - The code assumes that the following 'time' constants are in a increasing sequence. - - - - The code assumes that the following 'time' constants are in a increasing sequence. - - - - - - Roll the log not based on the date - - - - - Roll the log for each minute - - - - - Roll the log for each hour - - - - - Roll the log twice a day (midday and midnight) - - - - - Roll the log each day (midnight) - - - - - Roll the log each week - - - - - Roll the log each month - - - - - This interface is used to supply Date/Time information to the . - - - This interface is used to supply Date/Time information to the . - Used primarily to allow test classes to plug themselves in so they can - supply test date/times. - - - - - Gets the current time. - - The current time. - - - Gets the current time. - - - - - - Default implementation of that returns the current time. - - - - - Gets the current time. - - The current time. - - - Gets the current time. - - - - - - Send an e-mail when a specific logging event occurs, typically on errors - or fatal errors. - - - - The number of logging events delivered in this e-mail depend on - the value of option. The - keeps only the last - logging events in its - cyclic buffer. This keeps memory requirements at a reasonable level while - still delivering useful application context. - - - Authentication and setting the server Port are only available on the MS .NET 1.1 runtime. - For these features to be enabled you need to ensure that you are using a version of - the log4net assembly that is built against the MS .NET 1.1 framework and that you are - running the your application on the MS .NET 1.1 runtime. On all other platforms only sending - unauthenticated messages to a server listening on port 25 (the default) is supported. - - - Authentication is supported by setting the property to - either or . - If using authentication then the - and properties must also be set. - - - To set the SMTP server port use the property. The default port is 25. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Default constructor - - - - - - Sends the contents of the cyclic buffer as an e-mail message. - - The logging events to send. - - - - Send the email message - - the body text to include in the mail - - - - Gets or sets a semicolon-delimited list of recipient e-mail addresses. - - - A semicolon-delimited list of e-mail addresses. - - - - A semicolon-delimited list of recipient e-mail addresses. - - - - - - Gets or sets the e-mail address of the sender. - - - The e-mail address of the sender. - - - - The e-mail address of the sender. - - - - - - Gets or sets the subject line of the e-mail message. - - - The subject line of the e-mail message. - - - - The subject line of the e-mail message. - - - - - - Gets or sets the name of the SMTP relay mail server to use to send - the e-mail messages. - - - The name of the e-mail relay server. If SmtpServer is not set, the - name of the local SMTP server is used. - - - - The name of the e-mail relay server. If SmtpServer is not set, the - name of the local SMTP server is used. - - - - - - Obsolete - - - Use the BufferingAppenderSkeleton Fix methods instead - - - - Obsolete property. - - - - - - The mode to use to authentication with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - Valid Authentication mode values are: , - , and . - The default value is . When using - you must specify the - and to use to authenticate. - When using the Windows credentials for the current - thread, if impersonating, or the process will be used to authenticate. - - - - - - The username to use to authenticate with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - A and must be specified when - is set to , - otherwise the username will be ignored. - - - - - - The password to use to authenticate with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - A and must be specified when - is set to , - otherwise the password will be ignored. - - - - - - The port on which the SMTP server is listening - - - Server Port is only available on the MS .NET 1.1 runtime. - - The port on which the SMTP server is listening. The default - port is 25. The Port can only be changed when running on - the MS .NET 1.1 runtime. - - - - - - Gets or sets the priority of the e-mail message - - - One of the values. - - - - Sets the priority of the e-mails generated by this - appender. The default priority is . - - - If you are using this appender to report errors then - you may want to set the priority to . - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Values for the property. - - - - SMTP authentication modes. - - - - - - No authentication - - - - - Basic authentication. - - - Requires a username and password to be supplied - - - - - Integrated authentication - - - Uses the Windows credentials from the current thread or process to authenticate. - - - - - Send an email when a specific logging event occurs, typically on errors - or fatal errors. Rather than sending via smtp it writes a file into the - directory specified by . This allows services such - as the IIS SMTP agent to manage sending the messages. - - - - The configuration for this appender is identical to that of the SMTPAppender, - except that instead of specifying the SMTPAppender.SMTPHost you specify - . - - - The number of logging events delivered in this e-mail depend on - the value of option. The - keeps only the last - logging events in its - cyclic buffer. This keeps memory requirements at a reasonable level while - still delivering useful application context. - - - Niall Daley - Nicko Cadell - - - - Default constructor - - - - Default constructor - - - - - - Sends the contents of the cyclic buffer as an e-mail message. - - The logging events to send. - - - Sends the contents of the cyclic buffer as an e-mail message. - - - - - - Activate the options on this appender. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Convert a path into a fully qualified path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - - - - The security context to use for privileged calls - - - - - Gets or sets a semicolon-delimited list of recipient e-mail addresses. - - - A semicolon-delimited list of e-mail addresses. - - - - A semicolon-delimited list of e-mail addresses. - - - - - - Gets or sets the e-mail address of the sender. - - - The e-mail address of the sender. - - - - The e-mail address of the sender. - - - - - - Gets or sets the subject line of the e-mail message. - - - The subject line of the e-mail message. - - - - The subject line of the e-mail message. - - - - - - Gets or sets the path to write the messages to. - - - - Gets or sets the path to write the messages to. This should be the same - as that used by the agent sending the messages. - - - - - - Gets or sets the used to write to the pickup directory. - - - The used to write to the pickup directory. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appender that allows clients to connect via Telnet to receive log messages - - - - The TelnetAppender accepts socket connections and streams logging messages - back to the client. - The output is provided in a telnet-friendly way so that a log can be monitored - over a TCP/IP socket. - This allows simple remote monitoring of application logging. - - - The default is 23 (the telnet port). - - - Keith Long - Nicko Cadell - - - - Default constructor - - - - Default constructor - - - - - - Overrides the parent method to close the socket handler - - - - Closes all the outstanding connections. - - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Create the socket handler and wait for connections - - - - - - Writes the logging event to each connected client. - - The event to log. - - - Writes the logging event to each connected client. - - - - - - Gets or sets the TCP port number on which this will listen for connections. - - - An integer value in the range to - indicating the TCP port number on which this will listen for connections. - - - - The default value is 23 (the telnet port). - - - The value specified is less than - or greater than . - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Helper class to manage connected clients - - - - The SocketHandler class is used to accept connections from - clients. It is threaded so that clients can connect/disconnect - asynchronously. - - - - - - Opens a new server port on - - the local port to listen on for connections - - - Creates a socket handler on the specified local server port. - - - - - - Sends a string message to each of the connected clients - - the text to send - - - Sends a string message to each of the connected clients - - - - - - Add a client to the internal clients list - - client to add - - - - Remove a client from the internal clients list - - client to remove - - - - Callback used to accept a connection on the server socket - - The result of the asynchronous operation - - - On connection adds to the list of connections - if there are two many open connections you will be disconnected - - - - - - Close all network connections - - - - Make sure we close all network connections - - - - - - Test if this handler has active connections - - - true if this handler has active connections - - - - This property will be true while this handler has - active connections, that is at least one connection that - the handler will attempt to send a message to. - - - - - - Class that represents a client connected to this handler - - - - Class that represents a client connected to this handler - - - - - - Create this for the specified - - the client's socket - - - Opens a stream writer on the socket. - - - - - - Write a string to the client - - string to send - - - Write a string to the client - - - - - - Cleanup the clients connection - - - - Close the socket connection. - - - - - - Appends log events to the system. - - - - The application configuration file can be used to control what listeners - are actually used. See the MSDN documentation for the - class for details on configuring the - trace system. - - - Events are written using the System.Diagnostics.Trace.Write(string,string) - method. The event's logger name is passed as the value for the category name to the Write method. - - - Compact Framework
- The Compact Framework does not support the - class for any operation except Assert. When using the Compact Framework this - appender will write to the system rather than - the Trace system. This appender will therefore behave like the . -
-
- Douglas de la Torre - Nicko Cadell - Gert Driesen -
- - - Initializes a new instance of the . - - - - Default constructor. - - - - - - Initializes a new instance of the - with a specified layout. - - The layout to use with this appender. - - - Obsolete constructor. - - - - - - Writes the logging event to the system. - - The event to log. - - - Writes the logging event to the system. - - - - - - Immediate flush means that the underlying writer or output stream - will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logs events are not actually written to persistent media if and - when the application crashes. - - - The default value is true. - - - - - Gets or sets a value that indicates whether the appender will - flush at the end of each write. - - - The default behavior is to flush at the end of each - write. If the option is set tofalse, then the underlying - stream can defer writing to physical medium to a later time. - - - Avoiding the flush operation at the end of each append results - in a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Assembly level attribute that specifies a domain to alias to this assembly's repository. - - - - AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute. - - - An assembly's logger repository is defined by its , - however this can be overridden by an assembly loaded before the target assembly. - - - An assembly can alias another assembly's domain to its repository by - specifying this attribute with the name of the target domain. - - - This attribute can only be specified on the assembly and may be used - as many times as necessary to alias all the required domains. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute that specifies a repository to alias to this assembly's repository. - - - - An assembly's logger repository is defined by its , - however this can be overridden by an assembly loaded before the target assembly. - - - An assembly can alias another assembly's repository to its repository by - specifying this attribute with the name of the target repository. - - - This attribute can only be specified on the assembly and may be used - as many times as necessary to alias all the required repositories. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class with - the specified repository to alias to this assembly's repository. - - The repository to alias to this assemby's repository. - - - Initializes a new instance of the class with - the specified repository to alias to this assembly's repository. - - - - - - Gets or sets the repository to alias to this assemby's repository. - - - The repository to alias to this assemby's repository. - - - - The name of the repository to alias to this assemby's repository. - - - - - - Initializes a new instance of the class with - the specified domain to alias to this assembly's repository. - - The domain to alias to this assemby's repository. - - - Obsolete. Use instead of . - - - - - - Use this class to quickly configure a . - - - - Allows very simple programmatic configuration of log4net. - - - Only one appender can be configured using this configurator. - The appender is set at the root of the hierarchy and all logging - events will be delivered to that appender. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Initializes the log4net system with a default configuration. - - - - Initializes the log4net logging system using a - that will write to Console.Out. The log messages are - formatted using the layout object - with the - layout style. - - - - - - Initializes the log4net system using the specified appender. - - The appender to use to log all logging events. - - - Initializes the log4net system using the specified appender. - - - - - - Initializes the with a default configuration. - - The repository to configure. - - - Initializes the specified repository using a - that will write to Console.Out. The log messages are - formatted using the layout object - with the - layout style. - - - - - - Initializes the using the specified appender. - - The repository to configure. - The appender to use to log all logging events. - - - Initializes the using the specified appender. - - - - - - Base class for all log4net configuration attributes. - - - This is an abstract class that must be extended by - specific configurators. This attribute allows the - configurator to be parameterized by an assembly level - attribute. - - Nicko Cadell - Gert Driesen - - - - Constructor used by subclasses. - - the ordering priority for this configurator - - - The is used to order the configurator - attributes before they are invoked. Higher priority configurators are executed - before lower priority ones. - - - - - - Configures the for the specified assembly. - - The assembly that this attribute was defined on. - The repository to configure. - - - Abstract method implemented by a subclass. When this method is called - the subclass should configure the . - - - - - - Compare this instance to another ConfiguratorAttribute - - the object to compare to - see - - - Compares the priorities of the two instances. - Sorts by priority in descending order. Objects with the same priority are - randomly ordered. - - - - - - Assembly level attribute that specifies the logging domain for the assembly. - - - - DomainAttribute is obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - Assemblies are mapped to logging domains. Each domain has its own - logging repository. This attribute specified on the assembly controls - the configuration of the domain. The property specifies the name - of the domain that this assembly is a part of. The - specifies the type of the repository objects to create for the domain. If - this attribute is not specified and a is not specified - then the assembly will be part of the default shared logging domain. - - - This attribute can only be specified on the assembly and may only be used - once per assembly. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute that specifies the logging repository for the assembly. - - - - Assemblies are mapped to logging repository. This attribute specified - on the assembly controls - the configuration of the repository. The property specifies the name - of the repository that this assembly is a part of. The - specifies the type of the object - to create for the assembly. If this attribute is not specified or a - is not specified then the assembly will be part of the default shared logging repository. - - - This attribute can only be specified on the assembly and may only be used - once per assembly. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initialize a new instance of the class - with the name of the repository. - - The name of the repository. - - - Initialize the attribute with the name for the assembly's repository. - - - - - - Gets or sets the name of the logging repository. - - - The string name to use as the name of the repository associated with this - assembly. - - - - This value does not have to be unique. Several assemblies can share the - same repository. They will share the logging configuration of the repository. - - - - - - Gets or sets the type of repository to create for this assembly. - - - The type of repository to create for this assembly. - - - - The type of the repository to create for the assembly. - The type must implement the - interface. - - - This will be the type of repository created when - the repository is created. If multiple assemblies reference the - same repository then the repository is only created once using the - of the first assembly to call into the - repository. - - - - - - Initializes a new instance of the class. - - - - Obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - - - - Initialize a new instance of the class - with the name of the domain. - - The name of the domain. - - - Obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - - - - Use this class to initialize the log4net environment using an Xml tree. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - Configures a using an Xml tree. - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - - - Automatically configures the log4net system based on the - application's configuration settings. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - - - Automatically configures the using settings - stored in the application's configuration file. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - The repository to configure. - - - - Configures log4net using a log4net element - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Loads the log4net configuration from the XML element - supplied as . - - The element to parse. - - - - Configures the using the specified XML - element. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Loads the log4net configuration from the XML element - supplied as . - - The repository to configure. - The element to parse. - - - - Configures log4net using the specified configuration file. - - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - DOMConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures log4net using the specified configuration file. - - A stream to load the XML configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - DOMConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The stream to load the XML configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures log4net using the file specified, monitors the file for changes - and reloads the configuration if a change is detected. - - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the using the file specified, - monitors the file for changes and reloads the configuration if a change - is detected. - - The repository to configure. - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Assembly level attribute to configure the . - - - - AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute. - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute to configure the . - - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - If neither of the or - properties are set the configuration is loaded from the application's .config file. - If set the property takes priority over the - property. The property - specifies a path to a file to load the config from. The path is relative to the - application's base directory; . - The property is used as a postfix to the assembly file name. - The config file must be located in the application's base directory; . - For example in a console application setting the to - config has the same effect as not specifying the or - properties. - - - The property can be set to cause the - to watch the configuration file for changes. - - - - Log4net will only look for assembly level configuration attributes once. - When using the log4net assembly level attributes to control the configuration - of log4net you must ensure that the first call to any of the - methods is made from the assembly with the configuration - attributes. - - - If you cannot guarantee the order in which log4net calls will be made from - different assemblies you must use programmatic configuration instead, i.e. - call the method directly. - - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Default constructor - - - - - - Configures the for the specified assembly. - - The assembly that this attribute was defined on. - The repository to configure. - - - Configure the repository using the . - The specified must extend the - class otherwise the will not be able to - configure it. - - - The does not extend . - - - - Attempt to load configuration from the local file system - - The assembly that this attribute was defined on. - The repository to configure. - - - - Configure the specified repository using a - - The repository to configure. - the FileInfo pointing to the config file - - - - Attempt to load configuration from a URI - - The assembly that this attribute was defined on. - The repository to configure. - - - - Gets or sets the filename of the configuration file. - - - The filename of the configuration file. - - - - If specified, this is the name of the configuration file to use with - the . This file path is relative to the - application base directory (). - - - The takes priority over the . - - - - - - Gets or sets the extension of the configuration file. - - - The extension of the configuration file. - - - - If specified this is the extension for the configuration file. - The path to the config file is built by using the application - base directory (), - the assembly file name and the config file extension. - - - If the is set to MyExt then - possible config file names would be: MyConsoleApp.exe.MyExt or - MyClassLibrary.dll.MyExt. - - - The takes priority over the . - - - - - - Gets or sets a value indicating whether to watch the configuration file. - - - true if the configuration should be watched, false otherwise. - - - - If this flag is specified and set to true then the framework - will watch the configuration file and will reload the config each time - the file is modified. - - - The config file can only be watched if it is loaded from local disk. - In a No-Touch (Smart Client) deployment where the application is downloaded - from a web server the config file may not reside on the local disk - and therefore it may not be able to watch it. - - - Watching configuration is not supported on the SSCLI. - - - - - - Class to register for the log4net section of the configuration file - - - The log4net section of the configuration file needs to have a section - handler registered. This is the section handler used. It simply returns - the XML element that is the root of the section. - - - Example of registering the log4net section handler : - - - -
- - - log4net configuration XML goes here - - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Parses the configuration section. - - The configuration settings in a corresponding parent configuration section. - The configuration context when called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is a null reference. - The for the log4net section. - The for the log4net section. - - - Returns the containing the configuration data, - - - - - - Assembly level attribute that specifies a plugin to attach to - the repository. - - - - Specifies the type of a plugin to create and attach to the - assembly's repository. The plugin type must implement the - interface. - - - Nicko Cadell - Gert Driesen - - - - Interface used to create plugins. - - - - Interface used to create a plugin. - - - Nicko Cadell - Gert Driesen - - - - Creates the plugin object. - - the new plugin instance - - - Create and return a new plugin instance. - - - - - - Initializes a new instance of the class - with the specified type. - - The type name of plugin to create. - - - Create the attribute with the plugin type specified. - - - Where possible use the constructor that takes a . - - - - - - Initializes a new instance of the class - with the specified type. - - The type of plugin to create. - - - Create the attribute with the plugin type specified. - - - - - - Creates the plugin object defined by this attribute. - - - - Creates the instance of the object as - specified by this attribute. - - - The plugin object. - - - - Returns a representation of the properties of this object. - - - - Overrides base class method to - return a representation of the properties of this object. - - - A representation of the properties of this object - - - - Gets or sets the type for the plugin. - - - The type for the plugin. - - - - The type for the plugin. - - - - - - Gets or sets the type name for the plugin. - - - The type name for the plugin. - - - - The type name for the plugin. - - - Where possible use the property instead. - - - - - - Assembly level attribute to configure the . - - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - Nicko Cadell - - - - Construct provider attribute with type specified - - the type of the provider to use - - - The provider specified must subclass the - class. - - - - - - Configures the SecurityContextProvider - - The assembly that this attribute was defined on. - The repository to configure. - - - Creates a provider instance from the specified. - Sets this as the default security context provider . - - - - - - Gets or sets the type of the provider to use. - - - the type of the provider to use. - - - - The provider specified must subclass the - class. - - - - - - Use this class to initialize the log4net environment using an Xml tree. - - - - Configures a using an Xml tree. - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - - - Automatically configures the log4net system based on the - application's configuration settings. - - - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - To use this method to configure log4net you must specify - the section - handler for the log4net configuration section. See the - for an example. - - - - - - - Automatically configures the using settings - stored in the application's configuration file. - - - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - To use this method to configure log4net you must specify - the section - handler for the log4net configuration section. See the - for an example. - - - The repository to configure. - - - - Configures log4net using a log4net element - - - - Loads the log4net configuration from the XML element - supplied as . - - - The element to parse. - - - - Configures the using the specified XML - element. - - - Loads the log4net configuration from the XML element - supplied as . - - The repository to configure. - The element to parse. - - - - Configures log4net using the specified configuration file. - - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The first element matching <configuration> will be read as the - configuration. If this file is also a .NET .config file then you must specify - a configuration section for the log4net element otherwise .NET will - complain. Set the type for the section handler to , for example: - - -
- - - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - XmlConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures log4net using the specified configuration URI. - - A URI to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The must support the URI scheme specified. - - - - - - Configures log4net using the specified configuration data stream. - - A stream to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The first element matching <configuration> will be read as the - configuration. If this file is also a .NET .config file then you must specify - a configuration section for the log4net element otherwise .NET will - complain. Set the type for the section handler to , for example: - - -
- - - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - XmlConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures the using the specified configuration - URI. - - The repository to configure. - A URI to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The must support the URI scheme specified. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The stream to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures log4net using the file specified, monitors the file for changes - and reloads the configuration if a change is detected. - - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the using the file specified, - monitors the file for changes and reloads the configuration if a change - is detected. - - The repository to configure. - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the specified repository using a log4net element. - - The hierarchy to configure. - The element to parse. - - - Loads the log4net configuration from the XML element - supplied as . - - - This method is ultimately called by one of the Configure methods - to load the configuration from an . - - - - - - Class used to watch config files. - - - - Uses the to monitor - changes to a specified file. Because multiple change notifications - may be raised when the file is modified, a timer is used to - compress the notifications into a single event. The timer - waits for time before delivering - the event notification. If any further - change notifications arrive while the timer is waiting it - is reset and waits again for to - elapse. - - - - - - The default amount of time to wait after receiving notification - before reloading the config file. - - - - - Watch a specified config file used to configure a repository - - The repository to configure. - The configuration file to watch. - - - Watch a specified config file used to configure a repository - - - - - - Holds the FileInfo used to configure the XmlConfigurator - - - - - Holds the repository being configured. - - - - - The timer used to compress the notification events. - - - - - Initializes a new instance of the class. - - The repository to configure. - The configuration file to watch. - - - Initializes a new instance of the class. - - - - - - Event handler used by . - - The firing the event. - The argument indicates the file that caused the event to be fired. - - - This handler reloads the configuration from the file when the event is fired. - - - - - - Event handler used by . - - The firing the event. - The argument indicates the file that caused the event to be fired. - - - This handler reloads the configuration from the file when the event is fired. - - - - - - Called by the timer when the configuration has been updated. - - null - - - - The implementation of the interface suitable - for use with the compact framework - - - - This implementation is a simple - mapping between repository name and - object. - - - The .NET Compact Framework 1.0 does not support retrieving assembly - level attributes therefore unlike the DefaultRepositorySelector - this selector does not examine the calling assembly for attributes. - - - Nicko Cadell - - - - Interface used by the to select the . - - - - The uses a - to specify the policy for selecting the correct - to return to the caller. - - - Nicko Cadell - Gert Driesen - - - - Gets the for the specified assembly. - - The assembly to use to lookup to the - The for the assembly. - - - Gets the for the specified assembly. - - - How the association between and - is made is not defined. The implementation may choose any method for - this association. The results of this method must be repeatable, i.e. - when called again with the same arguments the result must be the - save value. - - - - - - Gets the named . - - The name to use to lookup to the . - The named - - Lookup a named . This is the repository created by - calling . - - - - - Creates a new repository for the assembly specified. - - The assembly to use to create the domain to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the domain - specified such that a call to with the - same assembly specified will return the same repository instance. - - - How the association between and - is made is not defined. The implementation may choose any method for - this association. - - - - - - Creates a new repository with the name specified. - - The name to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the name - specified such that a call to with the - same name will return the same repository instance. - - - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets an array of all currently defined repositories. - - - An array of the instances created by - this . - - - Gets an array of all of the repositories created by this selector. - - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - Create a new repository selector - - the type of the repositories to create, must implement - - - Create an new compact repository selector. - The default type for repositories must be specified, - an appropriate value would be . - - - throw if is null - throw if does not implement - - - - Get the for the specified assembly - - not used - The default - - - The argument is not used. This selector does not create a - separate repository for each assembly. - - - As a named repository is not specified the default repository is - returned. The default repository is named log4net-default-repository. - - - - - - Get the named - - the name of the repository to lookup - The named - - - Get the named . The default - repository is log4net-default-repository. Other repositories - must be created using the . - If the named repository does not exist an exception is thrown. - - - throw if is null - throw if the does not exist - - - - Create a new repository for the assembly specified - - not used - the type of repository to create, must implement - the repository created - - - The argument is not used. This selector does not create a - separate repository for each assembly. - - - If the is null then the - default repository type specified to the constructor is used. - - - As a named repository is not specified the default repository is - returned. The default repository is named log4net-default-repository. - - - - - - Create a new repository for the repository specified - - the repository to associate with the - the type of repository to create, must implement . - If this param is null then the default repository type is used. - the repository created - - - The created will be associated with the repository - specified such that a call to with the - same repository specified will return the same repository instance. - - - If the named repository already exists an exception will be thrown. - - - If is null then the default - repository type specified to the constructor is used. - - - throw if is null - throw if the already exists - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets a list of objects - - an array of all known objects - - - Gets an array of all of the repositories created by this selector. - - - - - - Notify the registered listeners that the repository has been created - - The repository that has been created - - - Raises the LoggerRepositoryCreatedEvent - event. - - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - The default implementation of the interface. - - - - Uses attributes defined on the calling assembly to determine how to - configure the hierarchy for the repository. - - - Nicko Cadell - Gert Driesen - - - - Creates a new repository selector. - - The type of the repositories to create, must implement - - - Create an new repository selector. - The default type for repositories must be specified, - an appropriate value would be . - - - is . - does not implement . - - - - Gets the for the specified assembly. - - The assembly use to lookup the . - - - The type of the created and the repository - to create can be overridden by specifying the - attribute on the . - - - The default values are to use the - implementation of the interface and to use the - as the name of the repository. - - - The created will be automatically configured using - any attributes defined on - the . - - - The for the assembly - is . - - - - Gets the for the specified repository. - - The repository to use to lookup the . - The for the specified repository. - - - Returns the named repository. If is null - a is thrown. If the repository - does not exist a is thrown. - - - Use to create a repository. - - - is . - does not exist. - - - - Create a new repository for the assembly specified - - the assembly to use to create the repository to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The type of the created and - the repository to create can be overridden by specifying the - attribute on the - . The default values are to use the - implementation of the - interface and to use the - as the name of the repository. - - - The created will be automatically - configured using any - attributes defined on the . - - - If a repository for the already exists - that repository will be returned. An error will not be raised and that - repository may be of a different type to that specified in . - Also the attribute on the - assembly may be used to override the repository type specified in - . - - - is . - - - - Creates a new repository for the assembly specified. - - the assembly to use to create the repository to associate with the . - The type of repository to create, must implement . - The name to assign to the created repository - Set to true to read and apply the assembly attributes - The repository created. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The type of the created and - the repository to create can be overridden by specifying the - attribute on the - . The default values are to use the - implementation of the - interface and to use the - as the name of the repository. - - - The created will be automatically - configured using any - attributes defined on the . - - - If a repository for the already exists - that repository will be returned. An error will not be raised and that - repository may be of a different type to that specified in . - Also the attribute on the - assembly may be used to override the repository type specified in - . - - - is . - - - - Creates a new repository for the specified repository. - - The repository to associate with the . - The type of repository to create, must implement . - If this param is then the default repository type is used. - The new repository. - - - The created will be associated with the repository - specified such that a call to with the - same repository specified will return the same repository instance. - - - is . - already exists. - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets a list of objects - - an array of all known objects - - - Gets an array of all of the repositories created by this selector. - - - - - - Aliases a repository to an existing repository. - - The repository to alias. - The repository that the repository is aliased to. - - - The repository specified will be aliased to the repository when created. - The repository must not already exist. - - - When the repository is created it must utilize the same repository type as - the repository it is aliased to, otherwise the aliasing will fail. - - - - is . - -or- - is . - - - - - Notifies the registered listeners that the repository has been created. - - The repository that has been created. - - - Raises the event. - - - - - - Gets the repository name and repository type for the specified assembly. - - The assembly that has a . - in/out param to hold the repository name to use for the assembly, caller should set this to the default value before calling. - in/out param to hold the type of the repository to create for the assembly, caller should set this to the default value before calling. - is . - - - - Configures the repository using information from the assembly. - - The assembly containing - attributes which define the configuration for the repository. - The repository to configure. - - is . - -or- - is . - - - - - Loads the attribute defined plugins on the assembly. - - The assembly that contains the attributes. - The repository to add the plugins to. - - is . - -or- - is . - - - - - Loads the attribute defined aliases on the assembly. - - The assembly that contains the attributes. - The repository to alias to. - - is . - -or- - is . - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - Defined error codes that can be passed to the method. - - - - Values passed to the method. - - - Nicko Cadell - - - - A general error - - - - - Error while writing output - - - - - Failed to flush file - - - - - Failed to close file - - - - - Unable to open output file - - - - - No layout specified - - - - - Failed to parse address - - - - - Appenders may delegate their error handling to an . - - - - Error handling is a particularly tedious to get right because by - definition errors are hard to predict and to reproduce. - - - Nicko Cadell - Gert Driesen - - - - Handles the error and information about the error condition is passed as - a parameter. - - The message associated with the error. - The that was thrown when the error occurred. - The error code associated with the error. - - - Handles the error and information about the error condition is passed as - a parameter. - - - - - - Prints the error message passed as a parameter. - - The message associated with the error. - The that was thrown when the error occurred. - - - See . - - - - - - Prints the error message passed as a parameter. - - The message associated with the error. - - - See . - - - - - - Interface for objects that require fixing. - - - - Interface that indicates that the object requires fixing before it - can be taken outside the context of the appender's - method. - - - When objects that implement this interface are stored - in the context properties maps - and - are fixed - (see ) the - method will be called. - - - Nicko Cadell - - - - Get a portable version of this object - - the portable instance of this object - - - Get a portable instance object that represents the current - state of this object. The portable object can be stored - and logged from any thread with identical results. - - - - - - Interface that all loggers implement - - - - This interface supports logging events and testing if a level - is enabled for logging. - - - These methods will not throw exceptions. Note to implementor, ensure - that the implementation of these methods cannot allow an exception - to be thrown to the caller. - - - Nicko Cadell - Gert Driesen - - - - This generic form is intended to be used by wrappers. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - the exception to log, including its stack trace. Pass null to not log an exception. - - - Generates a logging event for the specified using - the and . - - - - - - This is the most generic printing method that is intended to be used - by wrappers. - - The event being logged. - - - Logs the specified logging event through this logger. - - - - - - Checks if this logger is enabled for a given passed as parameter. - - The level to check. - - true if this logger is enabled for level, otherwise false. - - - - Test if this logger is going to log events of the specified . - - - - - - Gets the name of the logger. - - - The name of the logger. - - - - The name of this logger - - - - - - Gets the where this - Logger instance is attached to. - - - The that this logger belongs to. - - - - Gets the where this - Logger instance is attached to. - - - - - - Base interface for all wrappers - - - - Base interface for all wrappers. - - - All wrappers must implement this interface. - - - Nicko Cadell - - - - Get the implementation behind this wrapper object. - - - The object that in implementing this object. - - - - The object that in implementing this - object. The Logger object may not - be the same object as this object because of logger decorators. - This gets the actual underlying objects that is used to process - the log events. - - - - - - Delegate used to handle logger repository creation event notifications - - The which created the repository. - The event args - that holds the instance that has been created. - - - Delegate used to handle logger repository creation event notifications. - - - - - - Provides data for the event. - - - - A - event is raised every time a is created. - - - - - - The created - - - - - Construct instance using specified - - the that has been created - - - Construct instance using specified - - - - - - The that has been created - - - The that has been created - - - - The that has been created - - - - - - Test if an triggers an action - - - - Implementations of this interface allow certain appenders to decide - when to perform an appender specific action. - - - The action or behavior triggered is defined by the implementation. - - - Nicko Cadell - - - - Test if this event triggers the action - - The event to check - true if this event triggers the action, otherwise false - - - Return true if this event triggers the action - - - - - - Defines the default set of levels recognized by the system. - - - - Each has an associated . - - - Levels have a numeric that defines the relative - ordering between levels. Two Levels with the same - are deemed to be equivalent. - - - The levels that are recognized by log4net are set for each - and each repository can have different levels defined. The levels are stored - in the on the repository. Levels are - looked up by name from the . - - - When logging at level INFO the actual level used is not but - the value of LoggerRepository.LevelMap["INFO"]. The default value for this is - , but this can be changed by reconfiguring the level map. - - - Each level has a in addition to its . The - is the string that is written into the output log. By default - the display name is the same as the level name, but this can be used to alias levels - or to localize the log output. - - - Some of the predefined levels recognized by the system are: - - - - . - - - . - - - . - - - . - - - . - - - . - - - . - - - - Nicko Cadell - Gert Driesen - - - - Constructor - - Integer value for this level, higher values represent more severe levels. - The string name of this level. - The display name for this level. This may be localized or otherwise different from the name - - - Initializes a new instance of the class with - the specified level name and value. - - - - - - Constructor - - Integer value for this level, higher values represent more severe levels. - The string name of this level. - - - Initializes a new instance of the class with - the specified level name and value. - - - - - - Returns the representation of the current - . - - - A representation of the current . - - - - Returns the level . - - - - - - Compares levels. - - The object to compare against. - true if the objects are equal. - - - Compares the levels of instances, and - defers to base class if the target object is not a - instance. - - - - - - Returns a hash code - - A hash code for the current . - - - Returns a hash code suitable for use in hashing algorithms and data - structures like a hash table. - - - Returns the hash code of the level . - - - - - - Compares this instance to a specified object and returns an - indication of their relative values. - - A instance or to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the - values compared. The return value has these meanings: - - - Value - Meaning - - - Less than zero - This instance is less than . - - - Zero - This instance is equal to . - - - Greater than zero - - This instance is greater than . - -or- - is . - - - - - - - must be an instance of - or ; otherwise, an exception is thrown. - - - is not a . - - - - Returns a value indicating whether a specified - is greater than another specified . - - A - A - - true if is greater than - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is less than another specified . - - A - A - - true if is less than - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is greater than or equal to another specified . - - A - A - - true if is greater than or equal to - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is less than or equal to another specified . - - A - A - - true if is less than or equal to - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether two specified - objects have the same value. - - A or . - A or . - - true if the value of is the same as the - value of ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether two specified - objects have different values. - - A or . - A or . - - true if the value of is different from - the value of ; otherwise, false. - - - - Compares two levels. - - - - - - Compares two specified instances. - - The first to compare. - The second to compare. - - A 32-bit signed integer that indicates the relative order of the - two values compared. The return value has these meanings: - - - Value - Meaning - - - Less than zero - is less than . - - - Zero - is equal to . - - - Greater than zero - is greater than . - - - - - - Compares two levels. - - - - - - The level designates a higher level than all the rest. - - - - - The level designates very severe error events. - System unusable, emergencies. - - - - - The level designates very severe error events - that will presumably lead the application to abort. - - - - - The level designates very severe error events. - Take immediate action, alerts. - - - - - The level designates very severe error events. - Critical condition, critical. - - - - - The level designates very severe error events. - - - - - The level designates error events that might - still allow the application to continue running. - - - - - The level designates potentially harmful - situations. - - - - - The level designates informational messages - that highlight the progress of the application at the highest level. - - - - - The level designates informational messages that - highlight the progress of the application at coarse-grained level. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates the lowest level possible. - - - - - Gets the name of this level. - - - The name of this level. - - - - Gets the name of this level. - - - - - - Gets the value of this level. - - - The value of this level. - - - - Gets the value of this level. - - - - - - Gets the display name of this level. - - - The display name of this level. - - - - Gets the display name of this level. - - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a LevelCollection instance. - - list to create a readonly wrapper arround - - A LevelCollection wrapper that is read-only. - - - - - Initializes a new instance of the LevelCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the LevelCollection class - that has the specified initial capacity. - - - The number of elements that the new LevelCollection is initially capable of storing. - - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified LevelCollection. - - The LevelCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - Copies the entire LevelCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire LevelCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the LevelCollection. - - The to be added to the end of the LevelCollection. - The index at which the value has been added. - - - - Removes all elements from the LevelCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the LevelCollection. - - The to check for. - true if is found in the LevelCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the LevelCollection. - - The to locate in the LevelCollection. - - The zero-based index of the first occurrence of - in the entire LevelCollection, if found; otherwise, -1. - - - - - Inserts an element into the LevelCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the LevelCollection. - - The to remove from the LevelCollection. - - The specified was not found in the LevelCollection. - - - - - Removes the element at the specified index of the LevelCollection. - - The zero-based index of the element to remove. - - is less than zero - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the LevelCollection. - - An for the entire LevelCollection. - - - - Adds the elements of another LevelCollection to the current LevelCollection. - - The LevelCollection whose elements should be added to the end of the current LevelCollection. - The new of the LevelCollection. - - - - Adds the elements of a array to the current LevelCollection. - - The array whose elements should be added to the end of the LevelCollection. - The new of the LevelCollection. - - - - Adds the elements of a collection to the current LevelCollection. - - The collection whose elements should be added to the end of the LevelCollection. - The new of the LevelCollection. - - - - Sets the capacity to the actual number of elements. - - - - - is less than zero - -or- - is equal to or greater than . - - - - - is less than zero - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the LevelCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - The zero-based index of the element to get or set. - - is less than zero - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false - - - - Gets or sets the number of elements the LevelCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - A value - - - - - Supports simple iteration over a . - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - An evaluator that triggers at a threshold level - - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - Nicko Cadell - - - - The threshold for triggering - - - - - Create a new evaluator using the threshold. - - - - Create a new evaluator using the threshold. - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Create a new evaluator using the specified threshold. - - the threshold to trigger at - - - Create a new evaluator using the specified threshold. - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Is this the triggering event? - - The event to check - This method returns true, if the event level - is equal or higher than the . - Otherwise it returns false - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - the threshold to trigger at - - - The that will cause this evaluator to trigger - - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Mapping between string name and Level object - - - - Mapping between string name and object. - This mapping is held separately for each . - The level name is case insensitive. - - - Nicko Cadell - - - - Mapping from level name to Level object. The - level name is case insensitive - - - - - Construct the level map - - - - Construct the level map. - - - - - - Clear the internal maps of all levels - - - - Clear the internal maps of all levels - - - - - - Create a new Level and add it to the map - - the string to display for the Level - the level value to give to the Level - - - Create a new Level and add it to the map - - - - - - - Create a new Level and add it to the map - - the string to display for the Level - the level value to give to the Level - the display name to give to the Level - - - Create a new Level and add it to the map - - - - - - Add a Level to the map - - the Level to add - - - Add a Level to the map - - - - - - Lookup a named level from the map - - the name of the level to lookup is taken from this level. - If the level is not set on the map then this level is added - the level in the map with the name specified - - - Lookup a named level from the map. The name of the level to lookup is taken - from the property of the - argument. - - - If no level with the specified name is found then the - argument is added to the level map - and returned. - - - - - - Lookup a by name - - The name of the Level to lookup - a Level from the map with the name specified - - - Returns the from the - map with the name specified. If the no level is - found then null is returned. - - - - - - Return all possible levels as a list of Level objects. - - all possible levels as a list of Level objects - - - Return all possible levels as a list of Level objects. - - - - - - The internal representation of caller location information. - - - - This class uses the System.Diagnostics.StackTrace class to generate - a call stack. The caller's information is then extracted from this stack. - - - The System.Diagnostics.StackTrace class is not supported on the - .NET Compact Framework 1.0 therefore caller location information is not - available on that framework. - - - The System.Diagnostics.StackTrace class has this to say about Release builds: - - - "StackTrace information will be most informative with Debug build configurations. - By default, Debug builds include debug symbols, while Release builds do not. The - debug symbols contain most of the file, method name, line number, and column - information used in constructing StackFrame and StackTrace objects. StackTrace - might not report as many method calls as expected, due to code transformations - that occur during optimization." - - - This means that in a Release build the caller information may be incomplete or may - not exist at all! Therefore caller location information cannot be relied upon in a Release build. - - - Nicko Cadell - Gert Driesen - - - - When location information is not available the constant - NA is returned. Current value of this string - constant is ?. - - - - - Constructor - - The declaring type of the method that is - the stack boundary into the logging system for this call. - - - Initializes a new instance of the - class based on the current thread. - - - - - - Constructor - - The fully qualified class name. - The method name. - The file name. - The line number of the method within the file. - - - Initializes a new instance of the - class with the specified data. - - - - - - Gets the fully qualified class name of the caller making the logging - request. - - - The fully qualified class name of the caller making the logging - request. - - - - Gets the fully qualified class name of the caller making the logging - request. - - - - - - Gets the file name of the caller. - - - The file name of the caller. - - - - Gets the file name of the caller. - - - - - - Gets the line number of the caller. - - - The line number of the caller. - - - - Gets the line number of the caller. - - - - - - Gets the method name of the caller. - - - The method name of the caller. - - - - Gets the method name of the caller. - - - - - - Gets all available caller information - - - All available caller information, in the format - fully.qualified.classname.of.caller.methodName(Filename:line) - - - - Gets all available caller information, in the format - fully.qualified.classname.of.caller.methodName(Filename:line) - - - - - - Static manager that controls the creation of repositories - - - - Static manager that controls the creation of repositories - - - This class is used by the wrapper managers (e.g. ) - to provide access to the objects. - - - This manager also holds the that is used to - lookup and create repositories. The selector can be set either programmatically using - the property, or by setting the log4net.RepositorySelector - AppSetting in the applications config file to the fully qualified type name of the - selector to use. - - - Nicko Cadell - Gert Driesen - - - - Private constructor to prevent instances. Only static methods should be used. - - - - Private constructor to prevent instances. Only static methods should be used. - - - - - - Hook the shutdown event - - - - On the full .NET runtime, the static constructor hooks up the - AppDomain.ProcessExit and AppDomain.DomainUnload> events. - These are used to shutdown the log4net system as the application exits. - - - - - - Register for ProcessExit and DomainUnload events on the AppDomain - - - - This needs to be in a separate method because the events make - a LinkDemand for the ControlAppDomain SecurityPermission. Because - this is a LinkDemand it is demanded at JIT time. Therefore we cannot - catch the exception in the method itself, we have to catch it in the - caller. - - - - - - Return the default instance. - - the repository to lookup in - Return the default instance - - - Gets the for the repository specified - by the argument. - - - - - - Returns the default instance. - - The assembly to use to lookup the repository. - The default instance. - - - - Return the default instance. - - the repository to lookup in - Return the default instance - - - Gets the for the repository specified - by the argument. - - - - - - Returns the default instance. - - The assembly to use to lookup the repository. - The default instance. - - - Returns the default instance. - - - - - - Returns the named logger if it exists. - - The repository to lookup in. - The fully qualified logger name to look for. - - The logger found, or null if the named logger does not exist in the - specified repository. - - - - If the named logger exists (in the specified repository) then it - returns a reference to the logger, otherwise it returns - null. - - - - - - Returns the named logger if it exists. - - The assembly to use to lookup the repository. - The fully qualified logger name to look for. - - The logger found, or null if the named logger does not exist in the - specified assembly's repository. - - - - If the named logger exists (in the specified assembly's repository) then it - returns a reference to the logger, otherwise it returns - null. - - - - - - Returns all the currently defined loggers in the specified repository. - - The repository to lookup in. - All the defined loggers. - - - The root logger is not included in the returned array. - - - - - - Returns all the currently defined loggers in the specified assembly's repository. - - The assembly to use to lookup the repository. - All the defined loggers. - - - The root logger is not included in the returned array. - - - - - - Retrieves or creates a named logger. - - The repository to lookup in. - The name of the logger to retrieve. - The logger with the name specified. - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - - - - Retrieves or creates a named logger. - - The assembly to use to lookup the repository. - The name of the logger to retrieve. - The logger with the name specified. - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - - - - Shorthand for . - - The repository to lookup in. - The of which the fullname will be used as the name of the logger to retrieve. - The logger with the name specified. - - - Gets the logger for the fully qualified name of the type specified. - - - - - - Shorthand for . - - the assembly to use to lookup the repository - The of which the fullname will be used as the name of the logger to retrieve. - The logger with the name specified. - - - Gets the logger for the fully qualified name of the type specified. - - - - - - Shuts down the log4net system. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in all the - default repositories. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - The repository to shutdown. - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository for the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - The assembly to use to lookup the repository. - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository for the repository. The repository is looked up using - the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Resets all values contained in this repository instance to their defaults. - - The repository to reset. - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - - - - Resets all values contained in this repository instance to their defaults. - - The assembly to use to lookup the repository to reset. - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - - - - Creates a repository with the specified name. - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name. - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The name must be unique. Repositories cannot be redefined. - An Exception will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The name must be unique. Repositories cannot be redefined. - An Exception will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository for the specified assembly and repository type. - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - - - - Creates a repository for the specified assembly and repository type. - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - - - - Gets an array of all currently defined repositories. - - An array of all the known objects. - - - Gets an array of all currently defined repositories. - - - - - - Internal method to get pertinent version info. - - A string of version info. - - - - Called when the event fires - - the that is exiting - null - - - Called when the event fires. - - - When the event is triggered the log4net system is . - - - - - - Called when the event fires - - the that is exiting - null - - - Called when the event fires. - - - When the event is triggered the log4net system is . - - - - - - Initialize the default repository selector - - - - - Gets or sets the repository selector used by the . - - - The repository selector used by the . - - - - The repository selector () is used by - the to create and select repositories - (). - - - The caller to supplies either a string name - or an assembly (if not supplied the assembly is inferred using - ). - - - This context is used by the selector to lookup a specific repository. - - - For the full .NET Framework, the default repository is DefaultRepositorySelector; - for the .NET Compact Framework CompactRepositorySelector is the default - repository. - - - - - - Implementation of the interface. - - - - This class should be used as the base for all wrapper implementations. - - - Nicko Cadell - Gert Driesen - - - - Constructs a new wrapper for the specified logger. - - The logger to wrap. - - - Constructs a new wrapper for the specified logger. - - - - - - The logger that this object is wrapping - - - - - Gets the implementation behind this wrapper object. - - - The object that this object is implementing. - - - - The Logger object may not be the same object as this object - because of logger decorators. - - - This gets the actual underlying objects that is used to process - the log events. - - - - - - Portable data structure used by - - - - Portable data structure used by - - - Nicko Cadell - - - - The logger name. - - - - The logger name. - - - - - - Level of logging event. - - - - Level of logging event. Level cannot be Serializable - because it is a flyweight. Due to its special serialization it - cannot be declared final either. - - - - - - The application supplied message. - - - - The application supplied message of logging event. - - - - - - The name of thread - - - - The name of thread in which this logging event was generated - - - - - - The time the event was logged - - - - The TimeStamp is stored in the local time zone for this computer. - - - - - - Location information for the caller. - - - - Location information for the caller. - - - - - - String representation of the user - - - - String representation of the user's windows name, - like DOMAIN\username - - - - - - String representation of the identity. - - - - String representation of the current thread's principal identity. - - - - - - The string representation of the exception - - - - The string representation of the exception - - - - - - String representation of the AppDomain. - - - - String representation of the AppDomain. - - - - - - Additional event specific properties - - - - A logger or an appender may attach additional - properties to specific events. These properties - have a string key and an object value. - - - - - - Flags passed to the property - - - - Flags passed to the property - - - Nicko Cadell - - - - Fix the MDC - - - - - Fix the NDC - - - - - Fix the rendered message - - - - - Fix the thread name - - - - - Fix the callers location information - - - CAUTION: Very slow to generate - - - - - Fix the callers windows user name - - - CAUTION: Slow to generate - - - - - Fix the domain friendly name - - - - - Fix the callers principal name - - - CAUTION: May be slow to generate - - - - - Fix the exception text - - - - - Fix the event properties - - - - - No fields fixed - - - - - All fields fixed - - - - - Partial fields fixed - - - - This set of partial fields gives good performance. The following fields are fixed: - - - - - - - - - - - - - The internal representation of logging events. - - - - When an affirmative decision is made to log then a - instance is created. This instance - is passed around to the different log4net components. - - - This class is of concern to those wishing to extend log4net. - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - for incurred by calling but it - is essential to maintaining data consistency. - - - Nicko Cadell - Gert Driesen - Douglas de la Torre - Daniel Cazzulino - - - - The key into the Properties map for the host name value. - - - - - The key into the Properties map for the thread identity value. - - - - - The key into the Properties map for the user name value. - - - - - Initializes a new instance of the class - from the supplied parameters. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - The name of the logger of this event. - The level of this event. - The message of this event. - The exception for this event. - - - Except , and , - all fields of LoggingEvent are filled when actually needed. Call - to cache all data locally - to prevent inconsistencies. - - This method is called by the log4net framework - to create a logging event. - - - - - - Initializes a new instance of the class - using specific data. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - Data used to initialize the logging event. - The fields in the struct that have already been fixed. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - The parameter should be used to specify which fields in the - struct have been preset. Fields not specified in the - will be captured from the environment if requested or fixed. - - - - - - Initializes a new instance of the class - using specific data. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - Data used to initialize the logging event. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - This constructor sets this objects flags to , - this assumes that all the data relating to this event is passed in via the - parameter and no other data should be captured from the environment. - - - - - - Initializes a new instance of the class - using specific data. - - Data used to initialize the logging event. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - This constructor sets this objects flags to , - this assumes that all the data relating to this event is passed in via the - parameter and no other data should be captured from the environment. - - - - - - Serialization constructor - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Ensure that the repository is set. - - the value for the repository - - - - Write the rendered message to a TextWriter - - the writer to write the message to - - - Unlike the property this method - does store the message data in the internal cache. Therefore - if called only once this method should be faster than the - property, however if the message is - to be accessed multiple times then the property will be more efficient. - - - - - - Serializes this object into the provided. - - The to populate with data. - The destination for this serialization. - - - The data in this event must be fixed before it can be serialized. - - - The method must be called during the - method call if this event - is to be used outside that method. - - - - - - Gets the portable data for this . - - The for this event. - - - A new can be constructed using a - instance. - - - Does a fix of the data - in the logging event before returning the event data. - - - - - - Gets the portable data for this . - - The set of data to ensure is fixed in the LoggingEventData - The for this event. - - - A new can be constructed using a - instance. - - - - - - Returns this event's exception's rendered using the - . - - - This event's exception's rendered using the . - - - - Obsolete. Use instead. - - - - - - Returns this event's exception's rendered using the - . - - - This event's exception's rendered using the . - - - - Returns this event's exception's rendered using the - . - - - - - - Fix instance fields that hold volatile data. - - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - incurred by calling but it - is essential to maintaining data consistency. - - - Calling is equivalent to - calling passing the parameter - false. - - - See for more - information. - - - - - - Fixes instance fields that hold volatile data. - - Set to true to not fix data that takes a long time to fix. - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - for incurred by calling but it - is essential to maintaining data consistency. - - - The param controls the data that - is fixed. Some of the data that can be fixed takes a long time to - generate, therefore if you do not require those settings to be fixed - they can be ignored by setting the param - to true. This setting will ignore the - and settings. - - - Set to false to ensure that all - settings are fixed. - - - - - - Fix the fields specified by the parameter - - the fields to fix - - - Only fields specified in the will be fixed. - Fields will not be fixed if they have previously been fixed. - It is not possible to 'unfix' a field. - - - - - - Lookup a composite property in this event - - the key for the property to lookup - the value for the property - - - This event has composite properties that combine together properties from - several different contexts in the following order: - - - this events properties - - This event has that can be set. These - properties are specific to this event only. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - - - Get all the composite properties in this event - - the containing all the properties - - - See for details of the composite properties - stored by the event. - - - This method returns a single containing all the - properties defined for this event. - - - - - - The internal logging event data. - - - - - The internal logging event data. - - - - - The internal logging event data. - - - - - The fully qualified Type of the calling - logger class in the stack frame (i.e. the declaring type of the method). - - - - - The application supplied message of logging event. - - - - - The exception that was thrown. - - - This is not serialized. The string representation - is serialized instead. - - - - - The repository that generated the logging event - - - This is not serialized. - - - - - The fix state for this event - - - These flags indicate which fields have been fixed. - Not serialized. - - - - - Indicated that the internal cache is updateable (ie not fixed) - - - This is a seperate flag to m_fixFlags as it allows incrementel fixing and simpler - changes in the caching strategy. - - - - - Gets the time when the current process started. - - - This is the time when this process started. - - - - The TimeStamp is stored in the local time zone for this computer. - - - Tries to get the start time for the current process. - Failing that it returns the time of the first call to - this property. - - - Note that AppDomains may be loaded and unloaded within the - same process without the process terminating and therefore - without the process start time being reset. - - - - - - Gets the of the logging event. - - - The of the logging event. - - - - Gets the of the logging event. - - - - - - Gets the time of the logging event. - - - The time of the logging event. - - - - The TimeStamp is stored in the local time zone for this computer. - - - - - - Gets the name of the logger that logged the event. - - - The name of the logger that logged the event. - - - - Gets the name of the logger that logged the event. - - - - - - Gets the location information for this logging event. - - - The location information for this logging event. - - - - The collected information is cached for future use. - - - See the class for more information on - supported frameworks and the different behavior in Debug and - Release builds. - - - - - - Gets the message object used to initialize this event. - - - The message object used to initialize this event. - - - - Gets the message object used to initialize this event. - Note that this event may not have a valid message object. - If the event is serialized the message object will not - be transferred. To get the text of the message the - property must be used - not this property. - - - If there is no defined message object for this event then - null will be returned. - - - - - - Gets the exception object used to initialize this event. - - - The exception object used to initialize this event. - - - - Gets the exception object used to initialize this event. - Note that this event may not have a valid exception object. - If the event is serialized the exception object will not - be transferred. To get the text of the exception the - method must be used - not this property. - - - If there is no defined exception object for this event then - null will be returned. - - - - - - The that this event was created in. - - - - The that this event was created in. - - - - - - Gets the message, rendered through the . - - - The message rendered through the . - - - - The collected information is cached for future use. - - - - - - Gets the name of the current thread. - - - The name of the current thread, or the thread ID when - the name is not available. - - - - The collected information is cached for future use. - - - - - - Gets the name of the current user. - - - The name of the current user, or NOT AVAILABLE when the - underlying runtime has no support for retrieving the name of the - current user. - - - - Calls WindowsIdentity.GetCurrent().Name to get the name of - the current windows user. - - - To improve performance, we could cache the string representation of - the name, and reuse that as long as the identity stayed constant. - Once the identity changed, we would need to re-assign and re-render - the string. - - - However, the WindowsIdentity.GetCurrent() call seems to - return different objects every time, so the current implementation - doesn't do this type of caching. - - - Timing for these operations: - - - - Method - Results - - - WindowsIdentity.GetCurrent() - 10000 loops, 00:00:00.2031250 seconds - - - WindowsIdentity.GetCurrent().Name - 10000 loops, 00:00:08.0468750 seconds - - - - This means we could speed things up almost 40 times by caching the - value of the WindowsIdentity.GetCurrent().Name property, since - this takes (8.04-0.20) = 7.84375 seconds. - - - - - - Gets the identity of the current thread principal. - - - The string name of the identity of the current thread principal. - - - - Calls System.Threading.Thread.CurrentPrincipal.Identity.Name to get - the name of the current thread principal. - - - - - - Gets the AppDomain friendly name. - - - The AppDomain friendly name. - - - - Gets the AppDomain friendly name. - - - - - - Additional event specific properties. - - - Additional event specific properties. - - - - A logger or an appender may attach additional - properties to specific events. These properties - have a string key and an object value. - - - This property is for events that have been added directly to - this event. The aggregate properties (which include these - event properties) can be retrieved using - and . - - - Once the properties have been fixed this property - returns the combined cached properties. This ensures that updates to - this property are always reflected in the underlying storage. When - returning the combined properties there may be more keys in the - Dictionary than expected. - - - - - - The fixed fields in this event - - - The set of fields that are fixed in this event - - - - Fields will not be fixed if they have previously been fixed. - It is not possible to 'unfix' a field. - - - - - - Implementation of wrapper interface. - - - - This implementation of the interface - forwards to the held by the base class. - - - This logger has methods to allow the caller to log at the following - levels: - - - - DEBUG - - The and methods log messages - at the DEBUG level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - INFO - - The and methods log messages - at the INFO level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - WARN - - The and methods log messages - at the WARN level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - ERROR - - The and methods log messages - at the ERROR level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - FATAL - - The and methods log messages - at the FATAL level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - - The values for these levels and their semantic meanings can be changed by - configuring the for the repository. - - - Nicko Cadell - Gert Driesen - - - - The ILog interface is use by application to log messages into - the log4net framework. - - - - Use the to obtain logger instances - that implement this interface. The - static method is used to get logger instances. - - - This class contains methods for logging at different levels and also - has properties for determining if those logging levels are - enabled in the current configuration. - - - This interface can be implemented in different ways. This documentation - specifies reasonable behavior that a caller can expect from the actual - implementation, however different implementations reserve the right to - do things differently. - - - Simple example of logging messages - - ILog log = LogManager.GetLogger("application-log"); - - log.Info("Application Start"); - log.Debug("This is a debug message"); - - if (log.IsDebugEnabled) - { - log.Debug("This is another debug message"); - } - - - - - Nicko Cadell - Gert Driesen - - - Log a message object with the level. - - Log a message object with the level. - - The message object to log. - - - This method first checks if this logger is DEBUG - enabled by comparing the level of this logger with the - level. If this logger is - DEBUG enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of - the additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Logs a message object with the level. - - - - This method first checks if this logger is INFO - enabled by comparing the level of this logger with the - level. If this logger is - INFO enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Logs a message object with the INFO level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Log a message object with the level. - - - - This method first checks if this logger is WARN - enabled by comparing the level of this logger with the - level. If this logger is - WARN enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Logs a message object with the level. - - The message object to log. - - - This method first checks if this logger is ERROR - enabled by comparing the level of this logger with the - level. If this logger is - ERROR enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Log a message object with the level. - - - - This method first checks if this logger is FATAL - enabled by comparing the level of this logger with the - level. If this logger is - FATAL enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - - This function is intended to lessen the computational cost of - disabled log debug statements. - - For some ILog interface log, when you write: - - log.Debug("This is entry number: " + i ); - - - You incur the cost constructing the message, string construction and concatenation in - this case, regardless of whether the message is logged or not. - - - If you are worried about speed (who isn't), then you should write: - - - if (log.IsDebugEnabled) - { - log.Debug("This is entry number: " + i ); - } - - - This way you will not incur the cost of parameter - construction if debugging is disabled for log. On - the other hand, if the log is debug enabled, you - will incur the cost of evaluating whether the logger is debug - enabled twice. Once in and once in - the . This is an insignificant overhead - since evaluating a logger takes about 1% of the time it - takes to actually log. This is the preferred style of logging. - - Alternatively if your logger is available statically then the is debug - enabled state can be stored in a static variable like this: - - - private static readonly bool isDebugEnabled = log.IsDebugEnabled; - - - Then when you come to log you can write: - - - if (isDebugEnabled) - { - log.Debug("This is entry number: " + i ); - } - - - This way the debug enabled state is only queried once - when the class is loaded. Using a private static readonly - variable is the most efficient because it is a run time constant - and can be heavily optimized by the JIT compiler. - - - Of course if you use a static readonly variable to - hold the enabled state of the logger then you cannot - change the enabled state at runtime to vary the logging - that is produced. You have to decide if you need absolute - speed or runtime flexibility. - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Construct a new wrapper for the specified logger. - - The logger to wrap. - - - Construct a new wrapper for the specified logger. - - - - - - Virtual method called when the configuration of the repository changes - - the repository holding the levels - - - Virtual method called when the configuration of the repository changes - - - - - - Logs a message object with the DEBUG level. - - The message object to log. - - - This method first checks if this logger is DEBUG - enabled by comparing the level of this logger with the - DEBUG level. If this logger is - DEBUG enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the DEBUG level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the DEBUG level including - the stack trace of the passed - as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the INFO level. - - The message object to log. - - - This method first checks if this logger is INFO - enabled by comparing the level of this logger with the - INFO level. If this logger is - INFO enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of - the additivity flag. - - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the INFO level. - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the INFO level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the WARN level. - - the message object to log - - - This method first checks if this logger is WARN - enabled by comparing the level of this logger with the - WARN level. If this logger is - WARN enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the WARN level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the WARN level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the ERROR level. - - The message object to log. - - - This method first checks if this logger is ERROR - enabled by comparing the level of this logger with the - ERROR level. If this logger is - ERROR enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the ERROR level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the ERROR level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the FATAL level. - - The message object to log. - - - This method first checks if this logger is FATAL - enabled by comparing the level of this logger with the - FATAL level. If this logger is - FATAL enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the FATAL level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the FATAL level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Event handler for the event - - the repository - Empty - - - - The fully qualified name of this declaring type not the type of any subclass. - - - - - Checks if this logger is enabled for the DEBUG - level. - - - true if this logger is enabled for DEBUG events, - false otherwise. - - - - This function is intended to lessen the computational cost of - disabled log debug statements. - - - For some log Logger object, when you write: - - - log.Debug("This is entry number: " + i ); - - - You incur the cost constructing the message, concatenation in - this case, regardless of whether the message is logged or not. - - - If you are worried about speed, then you should write: - - - if (log.IsDebugEnabled()) - { - log.Debug("This is entry number: " + i ); - } - - - This way you will not incur the cost of parameter - construction if debugging is disabled for log. On - the other hand, if the log is debug enabled, you - will incur the cost of evaluating whether the logger is debug - enabled twice. Once in IsDebugEnabled and once in - the Debug. This is an insignificant overhead - since evaluating a logger takes about 1% of the time it - takes to actually log. - - - - - - Checks if this logger is enabled for the INFO level. - - - true if this logger is enabled for INFO events, - false otherwise. - - - - See for more information and examples - of using this method. - - - - - - - Checks if this logger is enabled for the WARN level. - - - true if this logger is enabled for WARN events, - false otherwise. - - - - See for more information and examples - of using this method. - - - - - - - Checks if this logger is enabled for the ERROR level. - - - true if this logger is enabled for ERROR events, - false otherwise. - - - - See for more information and examples of using this method. - - - - - - - Checks if this logger is enabled for the FATAL level. - - - true if this logger is enabled for FATAL events, - false otherwise. - - - - See for more information and examples of using this method. - - - - - - - A SecurityContext used by log4net when interacting with protected resources - - - - A SecurityContext used by log4net when interacting with protected resources - for example with operating system services. This can be used to impersonate - a principal that has been granted privileges on the system resources. - - - Nicko Cadell - - - - Impersonate this SecurityContext - - State supplied by the caller - An instance that will - revoke the impersonation of this SecurityContext, or null - - - Impersonate this security context. Further calls on the current - thread should now be made in the security context provided - by this object. When the result - method is called the security - context of the thread should be reverted to the state it was in - before was called. - - - - - - The providers default instances. - - - - A configured component that interacts with potentially protected system - resources uses a to provide the elevated - privileges required. If the object has - been not been explicitly provided to the component then the component - will request one from this . - - - By default the is - an instance of which returns only - objects. This is a reasonable default - where the privileges required are not know by the system. - - - This default behavior can be overridden by subclassing the - and overriding the method to return - the desired objects. The default provider - can be replaced by programmatically setting the value of the - property. - - - An alternative is to use the log4net.Config.SecurityContextProviderAttribute - This attribute can be applied to an assembly in the same way as the - log4net.Config.XmlConfiguratorAttribute". The attribute takes - the type to use as the as an argument. - - - Nicko Cadell - - - - The default provider - - - - - Protected default constructor to allow subclassing - - - - Protected default constructor to allow subclassing - - - - - - Create a SecurityContext for a consumer - - The consumer requesting the SecurityContext - An impersonation context - - - The default implementation is to return a . - - - Subclasses should override this method to provide their own - behavior. - - - - - - Gets or sets the default SecurityContextProvider - - - The default SecurityContextProvider - - - - The default provider is used by configured components that - require a and have not had one - given to them. - - - By default this is an instance of - that returns objects. - - - The default provider can be set programmatically by setting - the value of this property to a sub class of - that has the desired behavior. - - - - - - Delegate used to handle creation of new wrappers. - - The logger to wrap in a wrapper. - - - Delegate used to handle creation of new wrappers. This delegate - is called from the - method to construct the wrapper for the specified logger. - - - The delegate to use is supplied to the - constructor. - - - - - - Maps between logger objects and wrapper objects. - - - - This class maintains a mapping between objects and - objects. Use the method to - lookup the for the specified . - - - New wrapper instances are created by the - method. The default behavior is for this method to delegate construction - of the wrapper to the delegate supplied - to the constructor. This allows specialization of the behavior without - requiring subclassing of this type. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the - - The handler to use to create the wrapper objects. - - - Initializes a new instance of the class with - the specified handler to create the wrapper objects. - - - - - - Gets the wrapper object for the specified logger. - - The wrapper object for the specified logger - - - If the logger is null then the corresponding wrapper is null. - - - Looks up the wrapper it it has previously been requested and - returns it. If the wrapper has never been requested before then - the virtual method is - called. - - - - - - Creates the wrapper object for the specified logger. - - The logger to wrap in a wrapper. - The wrapper object for the logger. - - - This implementation uses the - passed to the constructor to create the wrapper. This method - can be overridden in a subclass. - - - - - - Called when a monitored repository shutdown event is received. - - The that is shutting down - - - This method is called when a that this - is holding loggers for has signaled its shutdown - event . The default - behavior of this method is to release the references to the loggers - and their wrappers generated for this repository. - - - - - - Event handler for repository shutdown event. - - The sender of the event. - The event args. - - - - Map of logger repositories to hashtables of ILogger to ILoggerWrapper mappings - - - - - The handler to use to create the extension wrapper objects. - - - - - Internal reference to the delegate used to register for repository shutdown events. - - - - - Gets the map of logger repositories. - - - Map of logger repositories. - - - - Gets the hashtable that is keyed on . The - values are hashtables keyed on with the - value being the corresponding . - - - - - - Formats a as "HH:mm:ss,fff". - - - - Formats a in the format "HH:mm:ss,fff" for example, "15:49:37,459". - - - Nicko Cadell - Gert Driesen - - - - Render a as a string. - - - - Interface to abstract the rendering of a - instance into a string. - - - The method is used to render the - date to a text writer. - - - Nicko Cadell - Gert Driesen - - - - Formats the specified date as a string. - - The date to format. - The writer to write to. - - - Format the as a string and write it - to the provided. - - - - - - String constant used to specify AbsoluteTimeDateFormat in layouts. Current value is ABSOLUTE. - - - - - String constant used to specify DateTimeDateFormat in layouts. Current value is DATE. - - - - - String constant used to specify ISO8601DateFormat in layouts. Current value is ISO8601. - - - - - Renders the date into a string. Format is "HH:mm:ss". - - The date to render into a string. - The string builder to write to. - - - Subclasses should override this method to render the date - into a string using a precision up to the second. This method - will be called at most once per second and the result will be - reused if it is needed again during the same second. - - - - - - Renders the date into a string. Format is "HH:mm:ss,fff". - - The date to render into a string. - The writer to write to. - - - Uses the method to generate the - time string up to the seconds and then appends the current - milliseconds. The results from are - cached and is called at most once - per second. - - - Sub classes should override - rather than . - - - - - - Last stored time with precision up to the second. - - - - - Last stored time with precision up to the second, formatted - as a string. - - - - - Last stored time with precision up to the second, formatted - as a string. - - - - - Formats a as "dd MMM yyyy HH:mm:ss,fff" - - - - Formats a in the format - "dd MMM yyyy HH:mm:ss,fff" for example, - "06 Nov 1994 15:49:37,459". - - - Nicko Cadell - Gert Driesen - Angelika Schnagl - - - - Default constructor. - - - - Initializes a new instance of the class. - - - - - - Formats the date without the milliseconds part - - The date to format. - The string builder to write to. - - - Formats a DateTime in the format "dd MMM yyyy HH:mm:ss" - for example, "06 Nov 1994 15:49:37". - - - The base class will append the ",fff" milliseconds section. - This method will only be called at most once per second. - - - - - - The format info for the invariant culture. - - - - - Formats the as "yyyy-MM-dd HH:mm:ss,fff". - - - - Formats the specified as a string: "yyyy-MM-dd HH:mm:ss,fff". - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Formats the date without the milliseconds part - - The date to format. - The string builder to write to. - - - Formats the date specified as a string: "yyyy-MM-dd HH:mm:ss". - - - The base class will append the ",fff" milliseconds section. - This method will only be called at most once per second. - - - - - - Formats the using the method. - - - - Formats the using the method. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The format string. - - - Initializes a new instance of the class - with the specified format string. - - - The format string must be compatible with the options - that can be supplied to . - - - - - - Formats the date using . - - The date to convert to a string. - The writer to write to. - - - Uses the date format string supplied to the constructor to call - the method to format the date. - - - - - - The format string used to format the . - - - - The format string must be compatible with the options - that can be supplied to . - - - - - - This filter drops all . - - - - You can add this filter to the end of a filter chain to - switch from the default "accept all unless instructed otherwise" - filtering behavior to a "deny all unless instructed otherwise" - behavior. - - - Nicko Cadell - Gert Driesen - - - - Subclass this type to implement customized logging event filtering - - - - Users should extend this class to implement customized logging - event filtering. Note that and - , the parent class of all standard - appenders, have built-in filtering rules. It is suggested that you - first use and understand the built-in rules before rushing to write - your own custom filters. - - - This abstract class assumes and also imposes that filters be - organized in a linear chain. The - method of each filter is called sequentially, in the order of their - addition to the chain. - - - The method must return one - of the integer constants , - or . - - - If the value is returned, then the log event is dropped - immediately without consulting with the remaining filters. - - - If the value is returned, then the next filter - in the chain is consulted. If there are no more filters in the - chain, then the log event is logged. Thus, in the presence of no - filters, the default behavior is to log all logging events. - - - If the value is returned, then the log - event is logged without consulting the remaining filters. - - - The philosophy of log4net filters is largely inspired from the - Linux ipchains. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface to provide customized logging event filtering - - - - Users should implement this interface to implement customized logging - event filtering. Note that and - , the parent class of all standard - appenders, have built-in filtering rules. It is suggested that you - first use and understand the built-in rules before rushing to write - your own custom filters. - - - This abstract class assumes and also imposes that filters be - organized in a linear chain. The - method of each filter is called sequentially, in the order of their - addition to the chain. - - - The method must return one - of the integer constants , - or . - - - If the value is returned, then the log event is dropped - immediately without consulting with the remaining filters. - - - If the value is returned, then the next filter - in the chain is consulted. If there are no more filters in the - chain, then the log event is logged. Thus, in the presence of no - filters, the default behavior is to log all logging events. - - - If the value is returned, then the log - event is logged without consulting the remaining filters. - - - The philosophy of log4net filters is largely inspired from the - Linux ipchains. - - - Nicko Cadell - Gert Driesen - - - - Decide if the logging event should be logged through an appender. - - The LoggingEvent to decide upon - The decision of the filter - - - If the decision is , then the event will be - dropped. If the decision is , then the next - filter, if any, will be invoked. If the decision is then - the event will be logged without consulting with other filters in - the chain. - - - - - - Property to get and set the next filter - - - The next filter in the chain - - - - Filters are typically composed into chains. This property allows the next filter in - the chain to be accessed. - - - - - - Points to the next filter in the filter chain. - - - - See for more information. - - - - - - Initialize the filter with the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Typically filter's options become active immediately on set, - however this method must still be called. - - - - - - Decide if the should be logged through an appender. - - The to decide upon - The decision of the filter - - - If the decision is , then the event will be - dropped. If the decision is , then the next - filter, if any, will be invoked. If the decision is then - the event will be logged without consulting with other filters in - the chain. - - - This method is marked abstract and must be implemented - in a subclass. - - - - - - Property to get and set the next filter - - - The next filter in the chain - - - - Filters are typically composed into chains. This property allows the next filter in - the chain to be accessed. - - - - - - Default constructor - - - - - Always returns the integer constant - - the LoggingEvent to filter - Always returns - - - Ignores the event being logged and just returns - . This can be used to change the default filter - chain behavior from to . This filter - should only be used as the last filter in the chain - as any further filters will be ignored! - - - - - - The return result from - - - - The return result from - - - - - - The log event must be dropped immediately without - consulting with the remaining filters, if any, in the chain. - - - - - This filter is neutral with respect to the log event. - The remaining filters, if any, should be consulted for a final decision. - - - - - The log event must be logged immediately without - consulting with the remaining filters, if any, in the chain. - - - - - This is a very simple filter based on matching. - - - - The filter admits two options and - . If there is an exact match between the value - of the option and the of the - , then the method returns in - case the option value is set - to true, if it is false then - is returned. If the does not match then - the result will be . - - - Nicko Cadell - Gert Driesen - - - - flag to indicate if the filter should on a match - - - - - the to match against - - - - - Default constructor - - - - - Tests if the of the logging event matches that of the filter - - the event to filter - see remarks - - - If the of the event matches the level of the - filter then the result of the function depends on the - value of . If it is true then - the function will return , it it is false then it - will return . If the does not match then - the result will be . - - - - - - when matching - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - The that the filter will match - - - - The level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - This is a simple filter based on matching. - - - - The filter admits three options and - that determine the range of priorities that are matched, and - . If there is a match between the range - of priorities and the of the , then the - method returns in case the - option value is set to true, if it is false - then is returned. If there is no match, is returned. - - - Nicko Cadell - Gert Driesen - - - - Flag to indicate the behavior when matching a - - - - - the minimum value to match - - - - - the maximum value to match - - - - - Default constructor - - - - - Check if the event should be logged. - - the logging event to check - see remarks - - - If the of the logging event is outside the range - matched by this filter then - is returned. If the is matched then the value of - is checked. If it is true then - is returned, otherwise - is returned. - - - - - - when matching and - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - Set the minimum matched - - - - The minimum level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - Sets the maximum matched - - - - The maximum level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - Simple filter to match a string in the event's logger name. - - - - The works very similar to the . It admits two - options and . If the - of the starts - with the value of the option, then the - method returns in - case the option value is set to true, - if it is false then is returned. - - - Daniel Cazzulino - - - - Flag to indicate the behavior when we have a match - - - - - The logger name string to substring match against the event - - - - - Default constructor - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The rendered message is matched against the . - If the equals the beginning of - the incoming () - then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - when matching - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - The that the filter will match - - - - This filter will attempt to match this value against logger name in - the following way. The match will be done against the beginning of the - logger name (using ). The match is - case sensitive. If a match is found then - the result depends on the value of . - - - - - - Simple filter to match a keyed string in the - - - - Simple filter to match a keyed string in the - - - As the MDC has been replaced with layered properties the - should be used instead. - - - Nicko Cadell - Gert Driesen - - - - Simple filter to match a string an event property - - - - Simple filter to match a string in the value for a - specific event property - - - Nicko Cadell - - - - Simple filter to match a string in the rendered message - - - - Simple filter to match a string in the rendered message - - - Nicko Cadell - Gert Driesen - - - - Flag to indicate the behavior when we have a match - - - - - The string to substring match against the message - - - - - A string regex to match - - - - - A regex object to match (generated from m_stringRegexToMatch) - - - - - Default constructor - - - - - Initialize and precompile the Regex if required - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The rendered message is matched against the . - If the occurs as a substring within - the message then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - when matching or - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - Sets the static string to match - - - - The string that will be substring matched against - the rendered message. If the message contains this - string then the filter will match. If a match is found then - the result depends on the value of . - - - One of or - must be specified. - - - - - - Sets the regular expression to match - - - - The regular expression pattern that will be matched against - the rendered message. If the message matches this - pattern then the filter will match. If a match is found then - the result depends on the value of . - - - One of or - must be specified. - - - - - - The key to use to lookup the string from the event properties - - - - - Default constructor - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The event property for the is matched against - the . - If the occurs as a substring within - the property value then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - The key to lookup in the event properties and then match against. - - - - The key name to use to lookup in the properties map of the - . The match will be performed against - the value of this property if it exists. - - - - - - Simple filter to match a string in the - - - - Simple filter to match a string in the - - - As the MDC has been replaced with named stacks stored in the - properties collections the should - be used instead. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Sets the to "NDC". - - - - - - Write the event appdomain name to the output - - - - Writes the to the output writer. - - - Daniel Cazzulino - Nicko Cadell - - - - Abstract class that provides the formatting functionality that - derived classes need. - - - Conversion specifiers in a conversion patterns are parsed to - individual PatternConverters. Each of which is responsible for - converting a logging event in a converter specific manner. - - Nicko Cadell - - - - Abstract class that provides the formatting functionality that - derived classes need. - - - - Conversion specifiers in a conversion patterns are parsed to - individual PatternConverters. Each of which is responsible for - converting a logging event in a converter specific manner. - - - Nicko Cadell - Gert Driesen - - - - Initial buffer size - - - - - Maximum buffer size before it is recycled - - - - - Protected constructor - - - - Initializes a new instance of the class. - - - - - - Evaluate this pattern converter and write the output to a writer. - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the appropriate way. - - - - - - Set the next pattern converter in the chains - - the pattern converter that should follow this converter in the chain - the next converter - - - The PatternConverter can merge with its neighbor during this method (or a sub class). - Therefore the return value may or may not be the value of the argument passed in. - - - - - - Write the pattern converter to the writer with appropriate formatting - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - This method calls to allow the subclass to perform - appropriate conversion of the pattern converter. If formatting options have - been specified via the then this method will - apply those formattings before writing the output. - - - - - - Fast space padding method. - - to which the spaces will be appended. - The number of spaces to be padded. - - - Fast space padding method. - - - - - - The option string to the converter - - - - - Write an dictionary to a - - the writer to write to - a to use for object conversion - the value to write to the writer - - - Writes the to a writer in the form: - - - {key1=value1, key2=value2, key3=value3} - - - If the specified - is not null then it is used to render the key and value to text, otherwise - the object's ToString method is called. - - - - - - Write an object to a - - the writer to write to - a to use for object conversion - the value to write to the writer - - - Writes the Object to a writer. If the specified - is not null then it is used to render the object to text, otherwise - the object's ToString method is called. - - - - - - Get the next pattern converter in the chain - - - the next pattern converter in the chain - - - - Get the next pattern converter in the chain - - - - - - Gets or sets the formatting info for this converter - - - The formatting info for this converter - - - - Gets or sets the formatting info for this converter - - - - - - Gets or sets the option value for this converter - - - The option for this converter - - - - Gets or sets the option value for this converter - - - - - - Initializes a new instance of the class. - - - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the correct way. - - that will receive the formatted result. - The on which the pattern converter should be executed. - - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the correct way. - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - - Flag indicating if this converter handles exceptions - - - false if this converter handles exceptions - - - - - Flag indicating if this converter handles the logging event exception - - false if this converter handles the logging event exception - - - If this converter handles the exception object contained within - , then this property should be set to - false. Otherwise, if the layout ignores the exception - object, then the property should be set to true. - - - Set this value to override a this default setting. The default - value is true, this converter does not handle the exception. - - - - - - Write the event appdomain name to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the output . - - - - - - Date pattern converter, uses a to format - the date of a . - - - - Render the to the writer as a string. - - - The value of the determines - the formatting of the date. The following values are allowed: - - - Option value - Output - - - ISO8601 - - Uses the formatter. - Formats using the "yyyy-MM-dd HH:mm:ss,fff" pattern. - - - - DATE - - Uses the formatter. - Formats using the "dd MMM yyyy HH:mm:ss,fff" for example, "06 Nov 1994 15:49:37,459". - - - - ABSOLUTE - - Uses the formatter. - Formats using the "HH:mm:ss,yyyy" for example, "15:49:37,459". - - - - other - - Any other pattern string uses the formatter. - This formatter passes the pattern string to the - method. - For details on valid patterns see - DateTimeFormatInfo Class. - - - - - - The is in the local time zone and is rendered in that zone. - To output the time in Universal time see . - - - Nicko Cadell - - - - The used to render the date to a string - - - - The used to render the date to a string - - - - - - Initialize the converter pattern based on the property. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Convert the pattern into the rendered message - - that will receive the formatted result. - the event being logged - - - Pass the to the - for it to render it to the writer. - - - The passed is in the local time zone. - - - - - - Write the exception text to the output - - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - - - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - Nicko Cadell - - - - Default constructor - - - - - Write the exception text to the output - - that will receive the formatted result. - the event being logged - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - - - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - - - - Writes the caller location file name to the output - - - - Writes the value of the for - the event to the output writer. - - - Nicko Cadell - - - - Write the caller location file name to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the for - the to the output . - - - - - - Write the caller location info to the output - - - - Writes the to the output writer. - - - Nicko Cadell - - - - Write the caller location info to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the output writer. - - - - - - Writes the event identity to the output - - - - Writes the value of the to - the output writer. - - - Daniel Cazzulino - Nicko Cadell - - - - Writes the event identity to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the - to - the output . - - - - - - Write the event level to the output - - - - Writes the display name of the event - to the writer. - - - Nicko Cadell - - - - Write the event level to the output - - that will receive the formatted result. - the event being logged - - - Writes the of the - to the . - - - - - - Write the caller location line number to the output - - - - Writes the value of the for - the event to the output writer. - - - Nicko Cadell - - - - Write the caller location line number to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the for - the to the output . - - - - - - Converter for logger name - - - - Outputs the of the event. - - - Nicko Cadell - - - - Converter to output and truncate '.' separated strings - - - - This abstract class supports truncating a '.' separated string - to show a specified number of elements from the right hand side. - This is used to truncate class names that are fully qualified. - - - Subclasses should override the method to - return the fully qualified string. - - - Nicko Cadell - - - - Initialize the converter - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Get the fully qualified string data - - the event being logged - the fully qualified name - - - Overridden by subclasses to get the fully qualified name before the - precision is applied to it. - - - Return the fully qualified '.' (dot/period) separated string. - - - - - - Convert the pattern to the rendered message - - that will receive the formatted result. - the event being logged - - Render the to the precision - specified by the property. - - - - - Gets the fully qualified name of the logger - - the event being logged - The fully qualified logger name - - - Returns the of the . - - - - - - Writes the event message to the output - - - - Uses the method - to write out the event message. - - - Nicko Cadell - - - - Writes the event message to the output - - that will receive the formatted result. - the event being logged - - - Uses the method - to write out the event message. - - - - - - Write the method name to the output - - - - Writes the caller location to - the output. - - - Nicko Cadell - - - - Write the method name to the output - - that will receive the formatted result. - the event being logged - - - Writes the caller location to - the output. - - - - - - Converter to include event NDC - - - - Outputs the value of the event property named NDC. - - - The should be used instead. - - - Nicko Cadell - - - - Write the event NDC to the output - - that will receive the formatted result. - the event being logged - - - As the thread context stacks are now stored in named event properties - this converter simply looks up the value of the NDC property. - - - The should be used instead. - - - - - - Property pattern converter - - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - Nicko Cadell - - - - Write the property value to the output - - that will receive the formatted result. - the event being logged - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - - - - Converter to output the relative time of the event - - - - Converter to output the time of the event relative to the start of the program. - - - Nicko Cadell - - - - Write the relative time to the output - - that will receive the formatted result. - the event being logged - - - Writes out the relative time of the event in milliseconds. - That is the number of milliseconds between the event - and the . - - - - - - Helper method to get the time difference between two DateTime objects - - start time (in the current local time zone) - end time (in the current local time zone) - the time difference in milliseconds - - - - Converter to include event thread name - - - - Writes the to the output. - - - Nicko Cadell - - - - Write the ThreadName to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the . - - - - - - Pattern converter for the class name - - - - Outputs the of the event. - - - Nicko Cadell - - - - Gets the fully qualified name of the class - - the event being logged - The fully qualified type name for the caller location - - - Returns the of the . - - - - - - Converter to include event user name - - Douglas de la Torre - Nicko Cadell - - - - Convert the pattern to the rendered message - - that will receive the formatted result. - the event being logged - - - - Write the TimeStamp to the output - - - - Date pattern converter, uses a to format - the date of a . - - - Uses a to format the - in Universal time. - - - See the for details on the date pattern syntax. - - - - Nicko Cadell - - - - Write the TimeStamp to the output - - that will receive the formatted result. - the event being logged - - - Pass the to the - for it to render it to the writer. - - - The passed is in the local time zone, this is converted - to Universal time before it is rendered. - - - - - - - A Layout that renders only the Exception text from the logging event - - - - A Layout that renders only the Exception text from the logging event. - - - This Layout should only be used with appenders that utilize multiple - layouts (e.g. ). - - - Nicko Cadell - Gert Driesen - - - - Extend this abstract class to create your own log layout format. - - - - This is the base implementation of the - interface. Most layout objects should extend this class. - - - - - - Subclasses must implement the - method. - - - Subclasses should set the in their default - constructor. - - - - Nicko Cadell - Gert Driesen - - - - Interface implemented by layout objects - - - - An object is used to format a - as text. The method is called by an - appender to transform the into a string. - - - The layout can also supply and - text that is appender before any events and after all the events respectively. - - - Nicko Cadell - Gert Driesen - - - - Implement this method to create your own layout format. - - The TextWriter to write the formatted event to - The event to format - - - This method is called by an appender to format - the as text and output to a writer. - - - If the caller does not have a and prefers the - event to be formatted as a then the following - code can be used to format the event into a . - - - StringWriter writer = new StringWriter(); - Layout.Format(writer, loggingEvent); - string formattedEvent = writer.ToString(); - - - - - - The content type output by this layout. - - The content type - - - The content type output by this layout. - - - This is a MIME type e.g. "text/plain". - - - - - - The header for the layout format. - - the layout header - - - The Header text will be appended before any logging events - are formatted and appended. - - - - - - The footer for the layout format. - - the layout footer - - - The Footer text will be appended after all the logging events - have been formatted and appended. - - - - - - Flag indicating if this layout handle exceptions - - false if this layout handles exceptions - - - If this layout handles the exception object contained within - , then the layout should return - false. Otherwise, if the layout ignores the exception - object, then the layout should return true. - - - - - - The header text - - - - See for more information. - - - - - - The footer text - - - - See for more information. - - - - - - Flag indicating if this layout handles exceptions - - - - false if this layout handles exceptions - - - - - - Empty default constructor - - - - Empty default constructor - - - - - - Activate component options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - This method must be implemented by the subclass. - - - - - - Implement this method to create your own layout format. - - The TextWriter to write the formatted event to - The event to format - - - This method is called by an appender to format - the as text. - - - - - - The content type output by this layout. - - The content type is "text/plain" - - - The content type output by this layout. - - - This base class uses the value "text/plain". - To change this value a subclass must override this - property. - - - - - - The header for the layout format. - - the layout header - - - The Header text will be appended before any logging events - are formatted and appended. - - - - - - The footer for the layout format. - - the layout footer - - - The Footer text will be appended after all the logging events - have been formatted and appended. - - - - - - Flag indicating if this layout handles exceptions - - false if this layout handles exceptions - - - If this layout handles the exception object contained within - , then the layout should return - false. Otherwise, if the layout ignores the exception - object, then the layout should return true. - - - Set this value to override a this default setting. The default - value is true, this layout does not handle the exception. - - - - - - Default constructor - - - - Constructs a ExceptionLayout - - - - - - Activate component options - - - - Part of the component activation - framework. - - - This method does nothing as options become effective immediately. - - - - - - Gets the exception text from the logging event - - The TextWriter to write the formatted event to - the event being logged - - - Write the exception string to the . - The exception string is retrieved from . - - - - - - Interface for raw layout objects - - - - Interface used to format a - to an object. - - - This interface should not be confused with the - interface. This interface is used in - only certain specialized situations where a raw object is - required rather than a formatted string. The - is not generally useful than this interface. - - - Nicko Cadell - Gert Driesen - - - - Implement this method to create your own layout format. - - The event to format - returns the formatted event - - - Implement this method to create your own layout format. - - - - - - Adapts any to a - - - - Where an is required this adapter - allows a to be specified. - - - Nicko Cadell - Gert Driesen - - - - The layout to adapt - - - - - Construct a new adapter - - the layout to adapt - - - Create the adapter for the specified . - - - - - - Format the logging event as an object. - - The event to format - returns the formatted event - - - Format the logging event as an object. - - - Uses the object supplied to - the constructor to perform the formatting. - - - - - - A flexible layout configurable with pattern string. - - - - The goal of this class is to a - as a string. The results - depend on the conversion pattern. - - - The conversion pattern is closely related to the conversion - pattern of the printf function in C. A conversion pattern is - composed of literal text and format control expressions called - conversion specifiers. - - - You are free to insert any literal text within the conversion - pattern. - - - Each conversion specifier starts with a percent sign (%) and is - followed by optional format modifiers and a conversion - pattern name. The conversion pattern name specifies the type of - data, e.g. logger, level, date, thread name. The format - modifiers control such things as field width, padding, left and - right justification. The following is a simple example. - - - Let the conversion pattern be "%-5level [%thread]: %message%newline" and assume - that the log4net environment was set to use a PatternLayout. Then the - statements - - - ILog log = LogManager.GetLogger(typeof(TestApp)); - log.Debug("Message 1"); - log.Warn("Message 2"); - - would yield the output - - DEBUG [main]: Message 1 - WARN [main]: Message 2 - - - Note that there is no explicit separator between text and - conversion specifiers. The pattern parser knows when it has reached - the end of a conversion specifier when it reads a conversion - character. In the example above the conversion specifier - %-5level means the level of the logging event should be left - justified to a width of five characters. - - - The recognized conversion pattern names are: - - - - Conversion Pattern Name - Effect - - - a - Equivalent to appdomain - - - appdomain - - Used to output the friendly name of the AppDomain where the - logging event was generated. - - - - c - Equivalent to logger - - - C - Equivalent to type - - - class - Equivalent to type - - - d - Equivalent to date - - - date - - - Used to output the date of the logging event in the local time zone. - To output the date in universal time use the %utcdate pattern. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %date{HH:mm:ss,fff} or - %date{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %date{ISO8601} or %date{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - exception - - - Used to output the exception passed in with the log message. - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - - - F - Equivalent to file - - - file - - - Used to output the file name where the logging request was - issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - identity - - - Used to output the user name for the currently active user - (Principal.Identity.Name). - - - WARNING Generating caller information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - - - l - Equivalent to location - - - L - Equivalent to line - - - location - - - Used to output location information of the caller which generated - the logging event. - - - The location information depends on the CLI implementation but - usually consists of the fully qualified name of the calling - method followed by the callers source the file name and line - number between parentheses. - - - The location information can be very useful. However, its - generation is extremely slow. Its use should be avoided - unless execution speed is not an issue. - - - See the note below on the availability of caller location information. - - - - - level - - - Used to output the level of the logging event. - - - - - line - - - Used to output the line number from where the logging request - was issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - logger - - - Used to output the logger of the logging event. The - logger conversion specifier can be optionally followed by - precision specifier, that is a decimal constant in - brackets. - - - If a precision specifier is given, then only the corresponding - number of right most components of the logger name will be - printed. By default the logger name is printed in full. - - - For example, for the logger name "a.b.c" the pattern - %logger{2} will output "b.c". - - - - - m - Equivalent to message - - - M - Equivalent to method - - - message - - - Used to output the application supplied message associated with - the logging event. - - - - - mdc - - - The MDC (old name for the ThreadContext.Properties) is now part of the - combined event properties. This pattern is supported for compatibility - but is equivalent to property. - - - - - method - - - Used to output the method name where the logging request was - issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - n - Equivalent to newline - - - newline - - - Outputs the platform dependent line separator character or - characters. - - - This conversion pattern offers the same performance as using - non-portable line separator strings such as "\n", or "\r\n". - Thus, it is the preferred way of specifying a line separator. - - - - - ndc - - - Used to output the NDC (nested diagnostic context) associated - with the thread that generated the logging event. - - - - - p - Equivalent to level - - - P - Equivalent to property - - - properties - Equivalent to property - - - property - - - Used to output the an event specific property. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %property{user} would include the value - from the property that is keyed by the string 'user'. Each property value - that is to be included in the log must be specified separately. - Properties are added to events by loggers or appenders. By default - the log4net:HostName property is set to the name of machine on - which the event was originally logged. - - - If no key is specified, e.g. %property then all the keys and their - values are printed in a comma separated list. - - - The properties of an event are combined from a number of different - contexts. These are listed below in the order in which they are searched. - - - - the event properties - - The event has that can be set. These - properties are specific to this event only. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - - r - Equivalent to timestamp - - - t - Equivalent to thread - - - timestamp - - - Used to output the number of milliseconds elapsed since the start - of the application until the creation of the logging event. - - - - - thread - - - Used to output the name of the thread that generated the - logging event. Uses the thread number if no name is available. - - - - - type - - - Used to output the fully qualified type name of the caller - issuing the logging request. This conversion specifier - can be optionally followed by precision specifier, that - is a decimal constant in brackets. - - - If a precision specifier is given, then only the corresponding - number of right most components of the class name will be - printed. By default the class name is output in fully qualified form. - - - For example, for the class name "log4net.Layout.PatternLayout", the - pattern %type{1} will output "PatternLayout". - - - WARNING Generating the caller class information is - slow. Thus, its use should be avoided unless execution speed is - not an issue. - - - See the note below on the availability of caller location information. - - - - - u - Equivalent to identity - - - username - - - Used to output the WindowsIdentity for the currently - active user. - - - WARNING Generating caller WindowsIdentity information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - - - utcdate - - - Used to output the date of the logging event in universal time. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %utcdate{HH:mm:ss,fff} or - %utcdate{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %utcdate{ISO8601} or %utcdate{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - w - Equivalent to username - - - x - Equivalent to ndc - - - X - Equivalent to mdc - - - % - - - The sequence %% outputs a single percent sign. - - - - - - The single letter patterns are deprecated in favor of the - longer more descriptive pattern names. - - - By default the relevant information is output as is. However, - with the aid of format modifiers it is possible to change the - minimum field width, the maximum field width and justification. - - - The optional format modifier is placed between the percent sign - and the conversion pattern name. - - - The first optional format modifier is the left justification - flag which is just the minus (-) character. Then comes the - optional minimum field width modifier. This is a decimal - constant that represents the minimum number of characters to - output. If the data item requires fewer characters, it is padded on - either the left or the right until the minimum width is - reached. The default is to pad on the left (right justify) but you - can specify right padding with the left justification flag. The - padding character is space. If the data item is larger than the - minimum field width, the field is expanded to accommodate the - data. The value is never truncated. - - - This behavior can be changed using the maximum field - width modifier which is designated by a period followed by a - decimal constant. If the data item is longer than the maximum - field, then the extra characters are removed from the - beginning of the data item and not from the end. For - example, it the maximum field width is eight and the data item is - ten characters long, then the first two characters of the data item - are dropped. This behavior deviates from the printf function in C - where truncation is done from the end. - - - Below are various format modifier examples for the logger - conversion specifier. - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Format modifierleft justifyminimum widthmaximum widthcomment
%20loggerfalse20none - - Left pad with spaces if the logger name is less than 20 - characters long. - -
%-20loggertrue20none - - Right pad with spaces if the logger - name is less than 20 characters long. - -
%.30loggerNAnone30 - - Truncate from the beginning if the logger - name is longer than 30 characters. - -
%20.30loggerfalse2030 - - Left pad with spaces if the logger name is shorter than 20 - characters. However, if logger name is longer than 30 characters, - then truncate from the beginning. - -
%-20.30loggertrue2030 - - Right pad with spaces if the logger name is shorter than 20 - characters. However, if logger name is longer than 30 characters, - then truncate from the beginning. - -
-
- - Note about caller location information.
- The following patterns %type %file %line %method %location %class %C %F %L %l %M - all generate caller location information. - Location information uses the System.Diagnostics.StackTrace class to generate - a call stack. The caller's information is then extracted from this stack. -
- - - The System.Diagnostics.StackTrace class is not supported on the - .NET Compact Framework 1.0 therefore caller location information is not - available on that framework. - - - - - The System.Diagnostics.StackTrace class has this to say about Release builds: - - - "StackTrace information will be most informative with Debug build configurations. - By default, Debug builds include debug symbols, while Release builds do not. The - debug symbols contain most of the file, method name, line number, and column - information used in constructing StackFrame and StackTrace objects. StackTrace - might not report as many method calls as expected, due to code transformations - that occur during optimization." - - - This means that in a Release build the caller information may be incomplete or may - not exist at all! Therefore caller location information cannot be relied upon in a Release build. - - - - Additional pattern converters may be registered with a specific - instance using the method. - -
- - This is a more detailed pattern. - %timestamp [%thread] %level %logger %ndc - %message%newline - - - A similar pattern except that the relative time is - right padded if less than 6 digits, thread name is right padded if - less than 15 characters and truncated if longer and the logger - name is left padded if shorter than 30 characters and truncated if - longer. - %-6timestamp [%15.15thread] %-5level %30.30logger %ndc - %message%newline - - Nicko Cadell - Gert Driesen - Douglas de la Torre - Daniel Cazzulino -
- - - Default pattern string for log output. - - - - Default pattern string for log output. - Currently set to the string "%message%newline" - which just prints the application supplied message. - - - - - - A detailed conversion pattern - - - - A conversion pattern which includes Time, Thread, Logger, and Nested Context. - Current value is %timestamp [%thread] %level %logger %ndc - %message%newline. - - - - - - Internal map of converter identifiers to converter types. - - - - This static map is overridden by the m_converterRegistry instance map - - - - - - the pattern - - - - - the head of the pattern converter chain - - - - - patterns defined on this PatternLayout only - - - - - Initialize the global registry - - - - Defines the builtin global rules. - - - - - - Constructs a PatternLayout using the DefaultConversionPattern - - - - The default pattern just produces the application supplied message. - - - Note to Inheritors: This constructor calls the virtual method - . If you override this method be - aware that it will be called before your is called constructor. - - - As per the contract the - method must be called after the properties on this object have been - configured. - - - - - - Constructs a PatternLayout using the supplied conversion pattern - - the pattern to use - - - Note to Inheritors: This constructor calls the virtual method - . If you override this method be - aware that it will be called before your is called constructor. - - - When using this constructor the method - need not be called. This may not be the case when using a subclass. - - - - - - Create the pattern parser instance - - the pattern to parse - The that will format the event - - - Creates the used to parse the conversion string. Sets the - global and instance rules on the . - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a formatted string as specified by the conversion pattern. - - the event being logged - The TextWriter to write the formatted event to - - - Parse the using the patter format - specified in the property. - - - - - - Add a converter to this PatternLayout - - the converter info - - - This version of the method is used by the configurator. - Programmatic users should use the alternative method. - - - - - - Add a converter to this PatternLayout - - the name of the conversion pattern for this converter - the type of the converter - - - Add a named pattern converter to this instance. This - converter will be used in the formatting of the event. - This method must be called before . - - - The specified must extend the - type. - - - - - - The pattern formatting string - - - - The ConversionPattern option. This is the string which - controls formatting and consists of a mix of literal content and - conversion specifiers. - - - - - - Wrapper class used to map converter names to converter types - - - - Pattern converter info class used during configuration to - pass to the - method. - - - - - - default constructor - - - - - Gets or sets the name of the conversion pattern - - - - The name of the pattern in the format string - - - - - - Gets or sets the type of the converter - - - - The value specified must extend the - type. - - - - - - Type converter for the interface - - - - Used to convert objects to the interface. - Supports converting from the interface to - the interface using the . - - - Nicko Cadell - Gert Driesen - - - - Interface supported by type converters - - - - This interface supports conversion from arbitrary types - to a single target type. See . - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Test if the can be converted to the - type supported by this converter. - - - - - - Convert the source object to the type supported by this object - - the object to convert - the converted object - - - Converts the to the type supported - by this converter. - - - - - - Can the sourceType be converted to an - - the source to be to be converted - true if the source type can be converted to - - - Test if the can be converted to a - . Only is supported - as the . - - - - - - Convert the value to a object - - the value to convert - the object - - - Convert the object to a - object. If the object - is a then the - is used to adapt between the two interfaces, otherwise an - exception is thrown. - - - - - - Extract the value of a property from the - - - - Extract the value of a property from the - - - Nicko Cadell - - - - Constructs a RawPropertyLayout - - - - - Lookup the property for - - The event to format - returns property value - - - Looks up and returns the object value of the property - named . If there is no property defined - with than name then null will be returned. - - - - - - The name of the value to lookup in the LoggingEvent Properties collection. - - - Value to lookup in the LoggingEvent Properties collection - - - - String name of the property to lookup in the . - - - - - - Extract the date from the - - - - Extract the date from the - - - Nicko Cadell - Gert Driesen - - - - Constructs a RawTimeStampLayout - - - - - Gets the as a . - - The event to format - returns the time stamp - - - Gets the as a . - - - The time stamp is in local time. To format the time stamp - in universal time use . - - - - - - Extract the date from the - - - - Extract the date from the - - - Nicko Cadell - Gert Driesen - - - - Constructs a RawUtcTimeStampLayout - - - - - Gets the as a . - - The event to format - returns the time stamp - - - Gets the as a . - - - The time stamp is in universal time. To format the time stamp - in local time use . - - - - - - A very simple layout - - - - SimpleLayout consists of the level of the log statement, - followed by " - " and then the log message itself. For example, - - DEBUG - Hello world - - - - Nicko Cadell - Gert Driesen - - - - Constructs a SimpleLayout - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a simple formatted output. - - the event being logged - The TextWriter to write the formatted event to - - - Formats the event as the level of the even, - followed by " - " and then the log message itself. The - output is terminated by a newline. - - - - - - Layout that formats the log events as XML elements. - - - - The output of the consists of a series of - log4net:event elements. It does not output a complete well-formed XML - file. The output is designed to be included as an external entity - in a separate file to form a correct XML file. - - - For example, if abc is the name of the file where - the output goes, then a well-formed XML file would - be: - - - <?xml version="1.0" ?> - - <!DOCTYPE log4net:events SYSTEM "log4net-events.dtd" [<!ENTITY data SYSTEM "abc">]> - - <log4net:events version="1.2" xmlns:log4net="http://logging.apache.org/log4net/schemas/log4net-events-1.2> - &data; - </log4net:events> - - - This approach enforces the independence of the - and the appender where it is embedded. - - - The version attribute helps components to correctly - interpret output generated by . The value of - this attribute should be "1.2" for release 1.2 and later. - - - Alternatively the Header and Footer properties can be - configured to output the correct XML header, open tag and close tag. - When setting the Header and Footer properties it is essential - that the underlying data store not be appendable otherwise the data - will become invalid XML. - - - Nicko Cadell - Gert Driesen - - - - Layout that formats the log events as XML elements. - - - - This is an abstract class that must be subclassed by an implementation - to conform to a specific schema. - - - Deriving classes must implement the method. - - - Nicko Cadell - Gert Driesen - - - - Protected constructor to support subclasses - - - - Initializes a new instance of the class - with no location info. - - - - - - Protected constructor to support subclasses - - - - The parameter determines whether - location information will be output by the layout. If - is set to true, then the - file name and line number of the statement at the origin of the log - statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a formatted string. - - The event being logged. - The TextWriter to write the formatted event to - - - Format the and write it to the . - - - This method creates an that writes to the - . The is passed - to the method. Subclasses should override the - method rather than this method. - - - - - - Does the actual writing of the XML. - - The writer to use to output the event to. - The event to write. - - - Subclasses should override this method to format - the as XML. - - - - - - Flag to indicate if location information should be included in - the XML events. - - - - - Writer adapter that ignores Close - - - - - The string to replace invalid chars with - - - - - Gets a value indicating whether to include location information in - the XML events. - - - true if location information should be included in the XML - events; otherwise, false. - - - - If is set to true, then the file - name and line number of the statement at the origin of the log - statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - The string to replace characters that can not be expressed in XML with. - - - Not all characters may be expressed in XML. This property contains the - string to replace those that can not with. This defaults to a ?. Set it - to the empty string to simply remove offending characters. For more - details on the allowed character ranges see http://www.w3.org/TR/REC-xml/#charsets - Character replacement will occur in the log message, the property names - and the property values. - - - - - - - Gets the content type output by this layout. - - - As this is the XML layout, the value is always "text/xml". - - - - As this is the XML layout, the value is always "text/xml". - - - - - - Constructs an XmlLayout - - - - - Constructs an XmlLayout. - - - - The LocationInfo option takes a boolean value. By - default, it is set to false which means there will be no location - information output by this layout. If the the option is set to - true, then the file name and line number of the statement - at the origin of the log statement will be output. - - - If you are embedding this layout within an SmtpAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Builds a cache of the element names - - - - - - Does the actual writing of the XML. - - The writer to use to output the event to. - The event to write. - - - Override the base class method - to write the to the . - - - - - - The prefix to use for all generated element names - - - - - The prefix to use for all element names - - - - The default prefix is log4net. Set this property - to change the prefix. If the prefix is set to an empty string - then no prefix will be written. - - - - - - Set whether or not to base64 encode the message. - - - - By default the log message will be written as text to the xml - output. This can cause problems when the message contains binary - data. By setting this to true the contents of the message will be - base64 encoded. If this is set then invalid character replacement - (see ) will not be performed - on the log message. - - - - - - Set whether or not to base64 encode the property values. - - - - By default the properties will be written as text to the xml - output. This can cause problems when one or more properties contain - binary data. By setting this to true the values of the properties - will be base64 encoded. If this is set then invalid character replacement - (see ) will not be performed - on the property values. - - - - - - Layout that formats the log events as XML elements compatible with the log4j schema - - - - Formats the log events according to the http://logging.apache.org/log4j schema. - - - Nicko Cadell - - - - The 1st of January 1970 in UTC - - - - - Constructs an XMLLayoutSchemaLog4j - - - - - Constructs an XMLLayoutSchemaLog4j. - - - - The LocationInfo option takes a boolean value. By - default, it is set to false which means there will be no location - information output by this layout. If the the option is set to - true, then the file name and line number of the statement - at the origin of the log statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Actually do the writing of the xml - - the writer to use - the event to write - - - Generate XML that is compatible with the log4j schema. - - - - - - The version of the log4j schema to use. - - - - Only version 1.2 of the log4j schema is supported. - - - - - - The default object Renderer. - - - - The default renderer supports rendering objects and collections to strings. - - - See the method for details of the output. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface in order to render objects as strings - - - - Certain types require special case conversion to - string form. This conversion is done by an object renderer. - Object renderers implement the - interface. - - - Nicko Cadell - Gert Driesen - - - - Render the object to a string - - The map used to lookup renderers - The object to render - The writer to render to - - - Render the object to a - string. - - - The parameter is - provided to lookup and render other objects. This is - very useful where contains - nested objects of unknown type. The - method can be used to render these objects. - - - - - - Default constructor - - - - Default constructor - - - - - - Render the object to a string - - The map used to lookup renderers - The object to render - The writer to render to - - - Render the object to a string. - - - The parameter is - provided to lookup and render other objects. This is - very useful where contains - nested objects of unknown type. The - method can be used to render these objects. - - - The default renderer supports rendering objects to strings as follows: - - - - Value - Rendered String - - - null - - "(null)" - - - - - - - For a one dimensional array this is the - array type name, an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. - - - For example: int[] {1, 2, 3}. - - - If the array is not one dimensional the - Array.ToString() is returned. - - - - - , & - - - Rendered as an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. - - - For example: {a, b, c}. - - - All collection classes that implement its subclasses, - or generic equivalents all implement the interface. - - - - - - - - Rendered as the key, an equals sign ('='), and the value (using the appropriate - renderer). - - - For example: key=value. - - - - - other - - Object.ToString() - - - - - - - - Render the array argument into a string - - The map used to lookup renderers - the array to render - The writer to render to - - - For a one dimensional array this is the - array type name, an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. For example: - int[] {1, 2, 3}. - - - If the array is not one dimensional the - Array.ToString() is returned. - - - - - - Render the enumerator argument into a string - - The map used to lookup renderers - the enumerator to render - The writer to render to - - - Rendered as an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. For example: - {a, b, c}. - - - - - - Render the DictionaryEntry argument into a string - - The map used to lookup renderers - the DictionaryEntry to render - The writer to render to - - - Render the key, an equals sign ('='), and the value (using the appropriate - renderer). For example: key=value. - - - - - - Map class objects to an . - - - - Maintains a mapping between types that require special - rendering and the that - is used to render them. - - - The method is used to render an - object using the appropriate renderers defined in this map. - - - Nicko Cadell - Gert Driesen - - - - Default Constructor - - - - Default constructor. - - - - - - Render using the appropriate renderer. - - the object to render to a string - the object rendered as a string - - - This is a convenience method used to render an object to a string. - The alternative method - should be used when streaming output to a . - - - - - - Render using the appropriate renderer. - - the object to render to a string - The writer to render to - - - Find the appropriate renderer for the type of the - parameter. This is accomplished by calling the - method. Once a renderer is found, it is - applied on the object and the result is returned - as a . - - - - - - Gets the renderer for the specified object type - - the object to lookup the renderer for - the renderer for - - - Gets the renderer for the specified object type. - - - Syntactic sugar method that calls - with the type of the object parameter. - - - - - - Gets the renderer for the specified type - - the type to lookup the renderer for - the renderer for the specified type - - - Returns the renderer for the specified type. - If no specific renderer has been defined the - will be returned. - - - - - - Internal function to recursively search interfaces - - the type to lookup the renderer for - the renderer for the specified type - - - - Clear the map of renderers - - - - Clear the custom renderers defined by using - . The - cannot be removed. - - - - - - Register an for . - - the type that will be rendered by - the renderer for - - - Register an object renderer for a specific source type. - This renderer will be returned from a call to - specifying the same as an argument. - - - - - - Get the default renderer instance - - the default renderer - - - Get the default renderer - - - - - - Interface implemented by logger repository plugins. - - - - Plugins define additional behavior that can be associated - with a . - The held by the - property is used to store the plugins for a repository. - - - The log4net.Config.PluginAttribute can be used to - attach plugins to repositories created using configuration - attributes. - - - Nicko Cadell - Gert Driesen - - - - Attaches the plugin to the specified . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - This method is called to notify the plugin that - it should stop operating and should detach from - the repository. - - - - - - Gets the name of the plugin. - - - The name of the plugin. - - - - Plugins are stored in the - keyed by name. Each plugin instance attached to a - repository must be a unique name. - - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a PluginCollection instance. - - list to create a readonly wrapper arround - - A PluginCollection wrapper that is read-only. - - - - - Initializes a new instance of the PluginCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the PluginCollection class - that has the specified initial capacity. - - - The number of elements that the new PluginCollection is initially capable of storing. - - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified PluginCollection. - - The PluginCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - - Copies the entire PluginCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire PluginCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the PluginCollection. - - The to be added to the end of the PluginCollection. - The index at which the value has been added. - - - - Removes all elements from the PluginCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the PluginCollection. - - The to check for. - true if is found in the PluginCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the PluginCollection. - - The to locate in the PluginCollection. - - The zero-based index of the first occurrence of - in the entire PluginCollection, if found; otherwise, -1. - - - - - Inserts an element into the PluginCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the PluginCollection. - - The to remove from the PluginCollection. - - The specified was not found in the PluginCollection. - - - - - Removes the element at the specified index of the PluginCollection. - - The zero-based index of the element to remove. - - is less than zero. - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the PluginCollection. - - An for the entire PluginCollection. - - - - Adds the elements of another PluginCollection to the current PluginCollection. - - The PluginCollection whose elements should be added to the end of the current PluginCollection. - The new of the PluginCollection. - - - - Adds the elements of a array to the current PluginCollection. - - The array whose elements should be added to the end of the PluginCollection. - The new of the PluginCollection. - - - - Adds the elements of a collection to the current PluginCollection. - - The collection whose elements should be added to the end of the PluginCollection. - The new of the PluginCollection. - - - - Sets the capacity to the actual number of elements. - - - - - is less than zero. - -or- - is equal to or greater than . - - - - - is less than zero. - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the PluginCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - An object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - - The at the specified index. - - The zero-based index of the element to get or set. - - is less than zero. - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false. - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false. - - - - Gets or sets the number of elements the PluginCollection can contain. - - - The number of elements the PluginCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - - A value - - - - - Supports simple iteration over a . - - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - The current element in the collection. - - - - - - - - Map of repository plugins. - - - - This class is a name keyed map of the plugins that are - attached to a repository. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The repository that the plugins should be attached to. - - - Initialize a new instance of the class with a - repository that the plugins should be attached to. - - - - - - Adds a to the map. - - The to add to the map. - - - The will be attached to the repository when added. - - - If there already exists a plugin with the same name - attached to the repository then the old plugin will - be and replaced with - the new plugin. - - - - - - Removes a from the map. - - The to remove from the map. - - - Remove a specific plugin from this map. - - - - - - Gets a by name. - - The name of the to lookup. - - The from the map with the name specified, or - null if no plugin is found. - - - - Lookup a plugin by name. If the plugin is not found null - will be returned. - - - - - - Gets all possible plugins as a list of objects. - - All possible plugins as a list of objects. - - - Get a collection of all the plugins defined in this map. - - - - - - Base implementation of - - - - Default abstract implementation of the - interface. This base class can be used by implementors - of the interface. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - the name of the plugin - - Initializes a new Plugin with the specified name. - - - - - Attaches this plugin to a . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - This method is called to notify the plugin that - it should stop operating and should detach from - the repository. - - - - - - The name of this plugin. - - - - - The repository this plugin is attached to. - - - - - Gets or sets the name of the plugin. - - - The name of the plugin. - - - - Plugins are stored in the - keyed by name. Each plugin instance attached to a - repository must be a unique name. - - - The name of the plugin must not change one the - plugin has been attached to a repository. - - - - - - The repository for this plugin - - - The that this plugin is attached to. - - - - Gets or sets the that this plugin is - attached to. - - - - - - Plugin that listens for events from the - - - - This plugin publishes an instance of - on a specified . This listens for logging events delivered from - a remote . - - - When an event is received it is relogged within the attached repository - as if it had been raised locally. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Initializes a new instance of the class. - - - The property must be set. - - - - - - Construct with sink Uri. - - The name to publish the sink under in the remoting infrastructure. - See for more details. - - - Initializes a new instance of the class - with specified name. - - - - - - Attaches this plugin to a . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - When the plugin is shutdown the remote logging - sink is disconnected. - - - - - - Gets or sets the URI of this sink. - - - The URI of this sink. - - - - This is the name under which the object is marshaled. - - - - - - - Delivers objects to a remote sink. - - - - Internal class used to listen for logging events - and deliver them to the local repository. - - - - - - Constructor - - The repository to log to. - - - Initializes a new instance of the for the - specified . - - - - - - Logs the events to the repository. - - The events to log. - - - The events passed are logged to the - - - - - - Obtains a lifetime service object to control the lifetime - policy for this instance. - - null to indicate that this instance should live forever. - - - Obtains a lifetime service object to control the lifetime - policy for this instance. This object should live forever - therefore this implementation returns null. - - - - - - The underlying that events should - be logged to. - - - - - Default implementation of - - - - This default implementation of the - interface is used to create the default subclass - of the object. - - - Nicko Cadell - Gert Driesen - - - - Interface abstracts creation of instances - - - - This interface is used by the to - create new objects. - - - The method is called - to create a named . - - - Implement this interface to create new subclasses of . - - - Nicko Cadell - Gert Driesen - - - - Create a new instance - - The name of the . - The instance for the specified name. - - - Create a new instance with the - specified name. - - - Called by the to create - new named instances. - - - If the is null then the root logger - must be returned. - - - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Create a new instance - - The name of the . - The instance for the specified name. - - - Create a new instance with the - specified name. - - - Called by the to create - new named instances. - - - If the is null then the root logger - must be returned. - - - - - - Default internal subclass of - - - - This subclass has no additional behavior over the - class but does allow instances - to be created. - - - - - - Implementation of used by - - - - Internal class used to provide implementation of - interface. Applications should use to get - logger instances. - - - This is one of the central classes in the log4net implementation. One of the - distinctive features of log4net are hierarchical loggers and their - evaluation. The organizes the - instances into a rooted tree hierarchy. - - - The class is abstract. Only concrete subclasses of - can be created. The - is used to create instances of this type for the . - - - Nicko Cadell - Gert Driesen - Aspi Havewala - Douglas de la Torre - - - - This constructor created a new instance and - sets its name. - - The name of the . - - - This constructor is protected and designed to be used by - a subclass that is not abstract. - - - Loggers are constructed by - objects. See for the default - logger creator. - - - - - - Add to the list of appenders of this - Logger instance. - - An appender to add to this logger - - - Add to the list of appenders of this - Logger instance. - - - If is already in the list of - appenders, then it won't be added again. - - - - - - Look for the appender named as name - - The name of the appender to lookup - The appender with the name specified, or null. - - - Returns the named appender, or null if the appender is not found. - - - - - - Remove all previously added appenders from this Logger instance. - - - - Remove all previously added appenders from this Logger instance. - - - This is useful when re-reading configuration information. - - - - - - Remove the appender passed as parameter form the list of appenders. - - The appender to remove - The appender removed from the list - - - Remove the appender passed as parameter form the list of appenders. - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Remove the appender passed as parameter form the list of appenders. - - The name of the appender to remove - The appender removed from the list - - - Remove the named appender passed as parameter form the list of appenders. - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - This generic form is intended to be used by wrappers. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generate a logging event for the specified using - the and . - - - This method must not throw any exception to the caller. - - - - - - This is the most generic printing method that is intended to be used - by wrappers. - - The event being logged. - - - Logs the specified logging event through this logger. - - - This method must not throw any exception to the caller. - - - - - - Checks if this logger is enabled for a given passed as parameter. - - The level to check. - - true if this logger is enabled for level, otherwise false. - - - - Test if this logger is going to log events of the specified . - - - This method must not throw any exception to the caller. - - - - - - Deliver the to the attached appenders. - - The event to log. - - - Call the appenders in the hierarchy starting at - this. If no appenders could be found, emit a - warning. - - - This method calls all the appenders inherited from the - hierarchy circumventing any evaluation of whether to log or not - to log the particular log request. - - - - - - Closes all attached appenders implementing the interface. - - - - Used to ensure that the appenders are correctly shutdown. - - - - - - This is the most generic printing method. This generic form is intended to be used by wrappers - - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generate a logging event for the specified using - the . - - - - - - Creates a new logging event and logs the event without further checks. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generates a logging event and delivers it to the attached - appenders. - - - - - - Creates a new logging event and logs the event without further checks. - - The event being logged. - - - Delivers the logging event to the attached appenders. - - - - - - The fully qualified type of the Logger class. - - - - - The name of this logger. - - - - - The assigned level of this logger. - - - - The level variable need not be - assigned a value in which case it is inherited - form the hierarchy. - - - - - - The parent of this logger. - - - - The parent of this logger. - All loggers have at least one ancestor which is the root logger. - - - - - - Loggers need to know what Hierarchy they are in. - - - - Loggers need to know what Hierarchy they are in. - The hierarchy that this logger is a member of is stored - here. - - - - - - Helper implementation of the interface - - - - - Flag indicating if child loggers inherit their parents appenders - - - - Additivity is set to true by default, that is children inherit - the appenders of their ancestors by default. If this variable is - set to false then the appenders found in the - ancestors of this logger are not used. However, the children - of this logger will inherit its appenders, unless the children - have their additivity flag set to false too. See - the user manual for more details. - - - - - - Lock to protect AppenderAttachedImpl variable m_appenderAttachedImpl - - - - - Gets or sets the parent logger in the hierarchy. - - - The parent logger in the hierarchy. - - - - Part of the Composite pattern that makes the hierarchy. - The hierarchy is parent linked rather than child linked. - - - - - - Gets or sets a value indicating if child loggers inherit their parent's appenders. - - - true if child loggers inherit their parent's appenders. - - - - Additivity is set to true by default, that is children inherit - the appenders of their ancestors by default. If this variable is - set to false then the appenders found in the - ancestors of this logger are not used. However, the children - of this logger will inherit its appenders, unless the children - have their additivity flag set to false too. See - the user manual for more details. - - - - - - Gets the effective level for this logger. - - The nearest level in the logger hierarchy. - - - Starting from this logger, searches the logger hierarchy for a - non-null level and returns it. Otherwise, returns the level of the - root logger. - - The Logger class is designed so that this method executes as - quickly as possible. - - - - - Gets or sets the where this - Logger instance is attached to. - - The hierarchy that this logger belongs to. - - - This logger must be attached to a single . - - - - - - Gets or sets the assigned , if any, for this Logger. - - - The of this logger. - - - - The assigned can be null. - - - - - - Get the appenders contained in this logger as an - . - - A collection of the appenders in this logger - - - Get the appenders contained in this logger as an - . If no appenders - can be found, then a is returned. - - - - - - Gets the logger name. - - - The name of the logger. - - - - The name of this logger - - - - - - Gets the where this - Logger instance is attached to. - - - The that this logger belongs to. - - - - Gets the where this - Logger instance is attached to. - - - - - - Construct a new Logger - - the name of the logger - - - Initializes a new instance of the class - with the specified name. - - - - - - Delegate used to handle logger creation event notifications. - - The in which the has been created. - The event args that hold the instance that has been created. - - - Delegate used to handle logger creation event notifications. - - - - - - Provides data for the event. - - - - A event is raised every time a - is created. - - - - - - The created - - - - - Constructor - - The that has been created. - - - Initializes a new instance of the event argument - class,with the specified . - - - - - - Gets the that has been created. - - - The that has been created. - - - - The that has been created. - - - - - - Hierarchical organization of loggers - - - - The casual user should not have to deal with this class - directly. - - - This class is specialized in retrieving loggers by name and - also maintaining the logger hierarchy. Implements the - interface. - - - The structure of the logger hierarchy is maintained by the - method. The hierarchy is such that children - link to their parent but parents do not have any references to their - children. Moreover, loggers can be instantiated in any order, in - particular descendant before ancestor. - - - In case a descendant is created before a particular ancestor, - then it creates a provision node for the ancestor and adds itself - to the provision node. Other descendants of the same ancestor add - themselves to the previously created provision node. - - - Nicko Cadell - Gert Driesen - - - - Base implementation of - - - - Default abstract implementation of the interface. - - - Skeleton implementation of the interface. - All types can extend this type. - - - Nicko Cadell - Gert Driesen - - - - Interface implemented by logger repositories. - - - - This interface is implemented by logger repositories. e.g. - . - - - This interface is used by the - to obtain interfaces. - - - Nicko Cadell - Gert Driesen - - - - Check if the named logger exists in the repository. If so return - its reference, otherwise returns null. - - The name of the logger to lookup - The Logger object with the name specified - - - If the names logger exists it is returned, otherwise - null is returned. - - - - - - Returns all the currently defined loggers as an Array. - - All the defined loggers - - - Returns all the currently defined loggers as an Array. - - - - - - Returns a named logger instance - - The name of the logger to retrieve - The logger object with the name specified - - - Returns a named logger instance. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - - - Shutdown the repository - - - Shutting down a repository will safely close and remove - all appenders in all loggers including the root logger. - - - Some appenders need to be closed before the - application exists. Otherwise, pending logging events might be - lost. - - - The method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Reset the repositories configuration to a default state - - - - Reset all values contained in this instance to their - default state. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the through this repository. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are configured as an Array. - - All the Appenders - - - Returns all the Appenders that are configured as an Array. - - - - - - The name of the repository - - - The name of the repository - - - - The name of the repository. - - - - - - RendererMap accesses the object renderer map for this repository. - - - RendererMap accesses the object renderer map for this repository. - - - - RendererMap accesses the object renderer map for this repository. - - - The RendererMap holds a mapping between types and - objects. - - - - - - The plugin map for this repository. - - - The plugin map for this repository. - - - - The plugin map holds the instances - that have been attached to this repository. - - - - - - Get the level map for the Repository. - - - - Get the level map for the Repository. - - - The level map defines the mappings between - level names and objects in - this repository. - - - - - - The threshold for all events in this repository - - - The threshold for all events in this repository - - - - The threshold for all events in this repository. - - - - - - Flag indicates if this repository has been configured. - - - Flag indicates if this repository has been configured. - - - - Flag indicates if this repository has been configured. - - - - - - Event to notify that the repository has been shutdown. - - - Event to notify that the repository has been shutdown. - - - - Event raised when the repository has been shutdown. - - - - - - Event to notify that the repository has had its configuration reset. - - - Event to notify that the repository has had its configuration reset. - - - - Event raised when the repository's configuration has been - reset to default. - - - - - - Event to notify that the repository has had its configuration changed. - - - Event to notify that the repository has had its configuration changed. - - - - Event raised when the repository's configuration has been changed. - - - - - - Repository specific properties - - - Repository specific properties - - - - These properties can be specified on a repository specific basis. - - - - - - Default Constructor - - - - Initializes the repository with default (empty) properties. - - - - - - Construct the repository using specific properties - - the properties to set for this repository - - - Initializes the repository with specified properties. - - - - - - Test if logger exists - - The name of the logger to lookup - The Logger object with the name specified - - - Check if the named logger exists in the repository. If so return - its reference, otherwise returns null. - - - - - - Returns all the currently defined loggers in the repository - - All the defined loggers - - - Returns all the currently defined loggers in the repository as an Array. - - - - - - Return a new logger instance - - The name of the logger to retrieve - The logger object with the name specified - - - Return a new logger instance. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - - - - Shutdown the repository - - - - Shutdown the repository. Can be overridden in a subclass. - This base class implementation notifies the - listeners and all attached plugins of the shutdown event. - - - - - - Reset the repositories configuration to a default state - - - - Reset all values contained in this instance to their - default state. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the logEvent through this repository. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are configured as an Array. - - All the Appenders - - - Returns all the Appenders that are configured as an Array. - - - - - - Adds an object renderer for a specific class. - - The type that will be rendered by the renderer supplied. - The object renderer used to render the object. - - - Adds an object renderer for a specific class. - - - - - - Notify the registered listeners that the repository is shutting down - - Empty EventArgs - - - Notify any listeners that this repository is shutting down. - - - - - - Notify the registered listeners that the repository has had its configuration reset - - Empty EventArgs - - - Notify any listeners that this repository's configuration has been reset. - - - - - - Notify the registered listeners that the repository has had its configuration changed - - Empty EventArgs - - - Notify any listeners that this repository's configuration has changed. - - - - - - Raise a configuration changed event on this repository - - EventArgs.Empty - - - Applications that programmatically change the configuration of the repository should - raise this event notification to notify listeners. - - - - - - The name of the repository - - - The string name of the repository - - - - The name of this repository. The name is - used to store and lookup the repositories - stored by the . - - - - - - The threshold for all events in this repository - - - The threshold for all events in this repository - - - - The threshold for all events in this repository - - - - - - RendererMap accesses the object renderer map for this repository. - - - RendererMap accesses the object renderer map for this repository. - - - - RendererMap accesses the object renderer map for this repository. - - - The RendererMap holds a mapping between types and - objects. - - - - - - The plugin map for this repository. - - - The plugin map for this repository. - - - - The plugin map holds the instances - that have been attached to this repository. - - - - - - Get the level map for the Repository. - - - - Get the level map for the Repository. - - - The level map defines the mappings between - level names and objects in - this repository. - - - - - - Flag indicates if this repository has been configured. - - - Flag indicates if this repository has been configured. - - - - Flag indicates if this repository has been configured. - - - - - - Event to notify that the repository has been shutdown. - - - Event to notify that the repository has been shutdown. - - - - Event raised when the repository has been shutdown. - - - - - - Event to notify that the repository has had its configuration reset. - - - Event to notify that the repository has had its configuration reset. - - - - Event raised when the repository's configuration has been - reset to default. - - - - - - Event to notify that the repository has had its configuration changed. - - - Event to notify that the repository has had its configuration changed. - - - - Event raised when the repository's configuration has been changed. - - - - - - Repository specific properties - - - Repository specific properties - - - These properties can be specified on a repository specific basis - - - - - Basic Configurator interface for repositories - - - - Interface used by basic configurator to configure a - with a default . - - - A should implement this interface to support - configuration by the . - - - Nicko Cadell - Gert Driesen - - - - Initialize the repository using the specified appender - - the appender to use to log all logging events - - - Configure the repository to route all logging events to the - specified appender. - - - - - - Configure repository using XML - - - - Interface used by Xml configurator to configure a . - - - A should implement this interface to support - configuration by the . - - - Nicko Cadell - Gert Driesen - - - - Initialize the repository using the specified config - - the element containing the root of the config - - - The schema for the XML configuration data is defined by - the implementation. - - - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Construct with properties - - The properties to pass to this repository. - - - Initializes a new instance of the class. - - - - - - Construct with a logger factory - - The factory to use to create new logger instances. - - - Initializes a new instance of the class with - the specified . - - - - - - Construct with properties and a logger factory - - The properties to pass to this repository. - The factory to use to create new logger instances. - - - Initializes a new instance of the class with - the specified . - - - - - - Test if a logger exists - - The name of the logger to lookup - The Logger object with the name specified - - - Check if the named logger exists in the hierarchy. If so return - its reference, otherwise returns null. - - - - - - Returns all the currently defined loggers in the hierarchy as an Array - - All the defined loggers - - - Returns all the currently defined loggers in the hierarchy as an Array. - The root logger is not included in the returned - enumeration. - - - - - - Return a new logger instance named as the first parameter using - the default factory. - - - - Return a new logger instance named as the first parameter using - the default factory. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - The name of the logger to retrieve - The logger object with the name specified - - - - Shutting down a hierarchy will safely close and remove - all appenders in all loggers including the root logger. - - - - Shutting down a hierarchy will safely close and remove - all appenders in all loggers including the root logger. - - - Some appenders need to be closed before the - application exists. Otherwise, pending logging events might be - lost. - - - The Shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Reset all values contained in this hierarchy instance to their default. - - - - Reset all values contained in this hierarchy instance to their - default. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the logEvent through this hierarchy. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are currently configured - - An array containing all the currently configured appenders - - - Returns all the instances that are currently configured. - All the loggers are searched for appenders. The appenders may also be containers - for appenders and these are also searched for additional loggers. - - - The list returned is unordered but does not contain duplicates. - - - - - - Collect the appenders from an . - The appender may also be a container. - - - - - - - Collect the appenders from an container - - - - - - - Initialize the log4net system using the specified appender - - the appender to use to log all logging events - - - - Initialize the log4net system using the specified appender - - the appender to use to log all logging events - - - This method provides the same functionality as the - method implemented - on this object, but it is protected and therefore can be called by subclasses. - - - - - - Initialize the log4net system using the specified config - - the element containing the root of the config - - - - Initialize the log4net system using the specified config - - the element containing the root of the config - - - This method provides the same functionality as the - method implemented - on this object, but it is protected and therefore can be called by subclasses. - - - - - - Test if this hierarchy is disabled for the specified . - - The level to check against. - - true if the repository is disabled for the level argument, false otherwise. - - - - If this hierarchy has not been configured then this method will - always return true. - - - This method will return true if this repository is - disabled for level object passed as parameter and - false otherwise. - - - See also the property. - - - - - - Clear all logger definitions from the internal hashtable - - - - This call will clear all logger definitions from the internal - hashtable. Invoking this method will irrevocably mess up the - logger hierarchy. - - - You should really know what you are doing before - invoking this method. - - - - - - Return a new logger instance named as the first parameter using - . - - The name of the logger to retrieve - The factory that will make the new logger instance - The logger object with the name specified - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated by the - parameter and linked with its existing - ancestors as well as children. - - - - - - Sends a logger creation event to all registered listeners - - The newly created logger - - Raises the logger creation event. - - - - - Updates all the parents of the specified logger - - The logger to update the parents for - - - This method loops through all the potential parents of - . There 3 possible cases: - - - - No entry for the potential parent of exists - - We create a ProvisionNode for this potential - parent and insert in that provision node. - - - - The entry is of type Logger for the potential parent. - - The entry is 's nearest existing parent. We - update 's parent field with this entry. We also break from - he loop because updating our parent's parent is our parent's - responsibility. - - - - The entry is of type ProvisionNode for this potential parent. - - We add to the list of children for this - potential parent. - - - - - - - - Replace a with a in the hierarchy. - - - - - - We update the links for all the children that placed themselves - in the provision node 'pn'. The second argument 'log' is a - reference for the newly created Logger, parent of all the - children in 'pn'. - - - We loop on all the children 'c' in 'pn'. - - - If the child 'c' has been already linked to a child of - 'log' then there is no need to update 'c'. - - - Otherwise, we set log's parent field to c's parent and set - c's parent field to log. - - - - - - Define or redefine a Level using the values in the argument - - the level values - - - Define or redefine a Level using the values in the argument - - - Supports setting levels via the configuration file. - - - - - - Set a Property using the values in the argument - - the property value - - - Set a Property using the values in the argument. - - - Supports setting property values via the configuration file. - - - - - - Event used to notify that a logger has been created. - - - - Event raised when a logger is created. - - - - - - Has no appender warning been emitted - - - - Flag to indicate if we have already issued a warning - about not having an appender warning. - - - - - - Get the root of this hierarchy - - - - Get the root of this hierarchy. - - - - - - Gets or sets the default instance. - - The default - - - The logger factory is used to create logger instances. - - - - - - A class to hold the value, name and display name for a level - - - - A class to hold the value, name and display name for a level - - - - - - Override Object.ToString to return sensible debug info - - string info about this object - - - - Value of the level - - - - If the value is not set (defaults to -1) the value will be looked - up for the current level with the same name. - - - - - - Name of the level - - - The name of the level - - - - The name of the level. - - - - - - Display name for the level - - - The display name of the level - - - - The display name of the level. - - - - - - A class to hold the key and data for a property set in the config file - - - - A class to hold the key and data for a property set in the config file - - - - - - Override Object.ToString to return sensible debug info - - string info about this object - - - - Property Key - - - Property Key - - - - Property Key. - - - - - - Property Value - - - Property Value - - - - Property Value. - - - - - - Used internally to accelerate hash table searches. - - - - Internal class used to improve performance of - string keyed hashtables. - - - The hashcode of the string is cached for reuse. - The string is stored as an interned value. - When comparing two objects for equality - the reference equality of the interned strings is compared. - - - Nicko Cadell - Gert Driesen - - - - Construct key with string name - - - - Initializes a new instance of the class - with the specified name. - - - Stores the hashcode of the string and interns - the string key to optimize comparisons. - - - The Compact Framework 1.0 the - method does not work. On the Compact Framework - the string keys are not interned nor are they - compared by reference. - - - The name of the logger. - - - - Returns a hash code for the current instance. - - A hash code for the current instance. - - - Returns the cached hashcode. - - - - - - Determines whether two instances - are equal. - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - Compares the references of the interned strings. - - - - - - Provision nodes are used where no logger instance has been specified - - - - instances are used in the - when there is no specified - for that node. - - - A provision node holds a list of child loggers on behalf of - a logger that does not exist. - - - Nicko Cadell - Gert Driesen - - - - Create a new provision node with child node - - A child logger to add to this node. - - - Initializes a new instance of the class - with the specified child logger. - - - - - - The sits at the root of the logger hierarchy tree. - - - - The is a regular except - that it provides several guarantees. - - - First, it cannot be assigned a null - level. Second, since the root logger cannot have a parent, the - property always returns the value of the - level field without walking the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Construct a - - The level to assign to the root logger. - - - Initializes a new instance of the class with - the specified logging level. - - - The root logger names itself as "root". However, the root - logger cannot be retrieved by name. - - - - - - Gets the assigned level value without walking the logger hierarchy. - - The assigned level value without walking the logger hierarchy. - - - Because the root logger cannot have a parent and its level - must not be null this property just returns the - value of . - - - - - - Gets or sets the assigned for the root logger. - - - The of the root logger. - - - - Setting the level of the root logger to a null reference - may have catastrophic results. We prevent this here. - - - - - - Initializes the log4net environment using an XML DOM. - - - - Configures a using an XML DOM. - - - Nicko Cadell - Gert Driesen - - - - Construct the configurator for a hierarchy - - The hierarchy to build. - - - Initializes a new instance of the class - with the specified . - - - - - - Configure the hierarchy by parsing a DOM tree of XML elements. - - The root element to parse. - - - Configure the hierarchy by parsing a DOM tree of XML elements. - - - - - - Parse appenders by IDREF. - - The appender ref element. - The instance of the appender that the ref refers to. - - - Parse an XML element that represents an appender and return - the appender. - - - - - - Parses an appender element. - - The appender element. - The appender instance or null when parsing failed. - - - Parse an XML element that represents an appender and return - the appender instance. - - - - - - Parses a logger element. - - The logger element. - - - Parse an XML element that represents a logger. - - - - - - Parses the root logger element. - - The root element. - - - Parse an XML element that represents the root logger. - - - - - - Parses the children of a logger element. - - The category element. - The logger instance. - Flag to indicate if the logger is the root logger. - - - Parse the child elements of a <logger> element. - - - - - - Parses an object renderer. - - The renderer element. - - - Parse an XML element that represents a renderer. - - - - - - Parses a level element. - - The level element. - The logger object to set the level on. - Flag to indicate if the logger is the root logger. - - - Parse an XML element that represents a level. - - - - - - Sets a parameter on an object. - - The parameter element. - The object to set the parameter on. - - The parameter name must correspond to a writable property - on the object. The value of the parameter is a string, - therefore this function will attempt to set a string - property first. If unable to set a string property it - will inspect the property and its argument type. It will - attempt to call a static method called Parse on the - type of the property. This method will take a single - string argument and return a value that can be used to - set the property. - - - - - Test if an element has no attributes or child elements - - the element to inspect - true if the element has any attributes or child elements, false otherwise - - - - Test if a is constructible with Activator.CreateInstance. - - the type to inspect - true if the type is creatable using a default constructor, false otherwise - - - - Look for a method on the that matches the supplied - - the type that has the method - the name of the method - the method info found - - - The method must be a public instance method on the . - The method must be named or "Add" followed by . - The method must take a single parameter. - - - - - - Converts a string value to a target type. - - The type of object to convert the string to. - The string value to use as the value of the object. - - - An object of type with value or - null when the conversion could not be performed. - - - - - - Creates an object as specified in XML. - - The XML element that contains the definition of the object. - The object type to use if not explicitly specified. - The type that the returned object must be or must inherit from. - The object or null - - - Parse an XML element and create an object instance based on the configuration - data. - - - The type of the instance may be specified in the XML. If not - specified then the is used - as the type. However the type is specified it must support the - type. - - - - - - key: appenderName, value: appender. - - - - - The Hierarchy being configured. - - - - - Delegate used to handle logger repository shutdown event notifications - - The that is shutting down. - Empty event args - - - Delegate used to handle logger repository shutdown event notifications. - - - - - - Delegate used to handle logger repository configuration reset event notifications - - The that has had its configuration reset. - Empty event args - - - Delegate used to handle logger repository configuration reset event notifications. - - - - - - Delegate used to handle event notifications for logger repository configuration changes. - - The that has had its configuration changed. - Empty event arguments. - - - Delegate used to handle event notifications for logger repository configuration changes. - - - - - - Write the name of the current AppDomain to the output - - - - Write the name of the current AppDomain to the output writer - - - Nicko Cadell - - - - Write the name of the current AppDomain to the output - - the writer to write to - null, state is not set - - - Writes name of the current AppDomain to the output . - - - - - - Write the current date to the output - - - - Date pattern converter, uses a to format - the current date and time to the writer as a string. - - - The value of the determines - the formatting of the date. The following values are allowed: - - - Option value - Output - - - ISO8601 - - Uses the formatter. - Formats using the "yyyy-MM-dd HH:mm:ss,fff" pattern. - - - - DATE - - Uses the formatter. - Formats using the "dd MMM yyyy HH:mm:ss,fff" for example, "06 Nov 1994 15:49:37,459". - - - - ABSOLUTE - - Uses the formatter. - Formats using the "HH:mm:ss,fff" for example, "15:49:37,459". - - - - other - - Any other pattern string uses the formatter. - This formatter passes the pattern string to the - method. - For details on valid patterns see - DateTimeFormatInfo Class. - - - - - - The date and time is in the local time zone and is rendered in that zone. - To output the time in Universal time see . - - - Nicko Cadell - - - - The used to render the date to a string - - - - The used to render the date to a string - - - - - - Initialize the converter options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write the current date to the output - - that will receive the formatted result. - null, state is not set - - - Pass the current date and time to the - for it to render it to the writer. - - - The date and time passed is in the local time zone. - - - - - - Write an environment variable to the output - - - - Write an environment variable to the output writer. - The value of the determines - the name of the variable to output. - - - Nicko Cadell - - - - Write an environment variable to the output - - the writer to write to - null, state is not set - - - Writes the environment variable to the output . - The name of the environment variable to output must be set - using the - property. - - - - - - Write the current thread identity to the output - - - - Write the current thread identity to the output writer - - - Nicko Cadell - - - - Write the current thread identity to the output - - the writer to write to - null, state is not set - - - Writes the current thread identity to the output . - - - - - - Pattern converter for literal string instances in the pattern - - - - Writes the literal string value specified in the - property to - the output. - - - Nicko Cadell - - - - Set the next converter in the chain - - The next pattern converter in the chain - The next pattern converter - - - Special case the building of the pattern converter chain - for instances. Two adjacent - literals in the pattern can be represented by a single combined - pattern converter. This implementation detects when a - is added to the chain - after this converter and combines its value with this converter's - literal value. - - - - - - Write the literal to the output - - the writer to write to - null, not set - - - Override the formatting behavior to ignore the FormattingInfo - because we have a literal instead. - - - Writes the value of - to the output . - - - - - - Convert this pattern into the rendered message - - that will receive the formatted result. - null, not set - - - This method is not used. - - - - - - Writes a newline to the output - - - - Writes the system dependent line terminator to the output. - This behavior can be overridden by setting the : - - - - Option Value - Output - - - DOS - DOS or Windows line terminator "\r\n" - - - UNIX - UNIX line terminator "\n" - - - - Nicko Cadell - - - - Initialize the converter - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write the current process ID to the output - - - - Write the current process ID to the output writer - - - Nicko Cadell - - - - Write the current process ID to the output - - the writer to write to - null, state is not set - - - Write the current process ID to the output . - - - - - - Property pattern converter - - - - This pattern converter reads the thread and global properties. - The thread properties take priority over global properties. - See for details of the - thread properties. See for - details of the global properties. - - - If the is specified then that will be used to - lookup a single property. If no is specified - then all properties will be dumped as a list of key value pairs. - - - Nicko Cadell - - - - Write the property value to the output - - that will receive the formatted result. - null, state is not set - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - - - - A Pattern converter that generates a string of random characters - - - - The converter generates a string of random characters. By default - the string is length 4. This can be changed by setting the - to the string value of the length required. - - - The random characters in the string are limited to uppercase letters - and numbers only. - - - The random number generator used by this class is not cryptographically secure. - - - Nicko Cadell - - - - Shared random number generator - - - - - Length of random string to generate. Default length 4. - - - - - Initialize the converter options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write a randoim string to the output - - the writer to write to - null, state is not set - - - Write a randoim string to the output . - - - - - - Write the current threads username to the output - - - - Write the current threads username to the output writer - - - Nicko Cadell - - - - Write the current threads username to the output - - the writer to write to - null, state is not set - - - Write the current threads username to the output . - - - - - - Write the UTC date time to the output - - - - Date pattern converter, uses a to format - the current date and time in Universal time. - - - See the for details on the date pattern syntax. - - - - Nicko Cadell - - - - Write the current date and time to the output - - that will receive the formatted result. - null, state is not set - - - Pass the current date and time to the - for it to render it to the writer. - - - The date is in Universal time when it is rendered. - - - - - - - Type converter for Boolean. - - - - Supports conversion from string to bool type. - - - - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Convert the source object to the type supported by this object - - the object to convert - the converted object - - - Uses the method to convert the - argument to a . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Exception base type for conversion errors. - - - - This type extends . It - does not add any new functionality but does differentiate the - type of exception being thrown. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - A message to include with the exception. - - - Initializes a new instance of the class - with the specified message. - - - - - - Constructor - - A message to include with the exception. - A nested exception to include. - - - Initializes a new instance of the class - with the specified message and inner exception. - - - - - - Serialization constructor - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Creates a new instance of the class. - - The conversion destination type. - The value to convert. - An instance of the . - - - Creates a new instance of the class. - - - - - - Creates a new instance of the class. - - The conversion destination type. - The value to convert. - A nested exception to include. - An instance of the . - - - Creates a new instance of the class. - - - - - - Register of type converters for specific types. - - - - Maintains a registry of type converters used to convert between - types. - - - Use the and - methods to register new converters. - The and methods - lookup appropriate converters to use. - - - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - Initializes a new instance of the class. - - - - - Static constructor. - - - - This constructor defines the intrinsic type converters. - - - - - - Adds a converter for a specific type. - - The type being converted to. - The type converter to use to convert to the destination type. - - - Adds a converter instance for a specific type. - - - - - - Adds a converter for a specific type. - - The type being converted to. - The type of the type converter to use to convert to the destination type. - - - Adds a converter for a specific type. - - - - - - Gets the type converter to use to convert values to the destination type. - - The type being converted from. - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - Gets the type converter to use to convert values to the destination type. - - - - - - Gets the type converter to use to convert values to the destination type. - - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - Gets the type converter to use to convert values to the destination type. - - - - - - Lookups the type converter to use as specified by the attributes on the - destination type. - - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - - Creates the instance of the type converter. - - The type of the type converter. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - The type specified for the type converter must implement - the or interfaces - and must have a public default (no argument) constructor. - - - - - - Mapping from to type converter. - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to an encoding - the encoding - - - Uses the method to - convert the argument to an . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Interface supported by type converters - - - - This interface supports conversion from a single type to arbitrary types. - See . - - - Nicko Cadell - - - - Returns whether this converter can convert the object to the specified type - - A Type that represents the type you want to convert to - true if the conversion is possible - - - Test if the type supported by this converter can be converted to the - . - - - - - - Converts the given value object to the specified type, using the arguments - - the object to convert - The Type to convert the value parameter to - the converted object - - - Converts the (which must be of the type supported - by this converter) to the specified.. - - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to an IPAddress - the IPAddress - - - Uses the method to convert the - argument to an . - If that fails then the string is resolved as a DNS hostname. - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Valid characters in an IPv4 or IPv6 address string. (Does not support subnets) - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - The string is used as the - of the . - - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a PatternLayout - the PatternLayout - - - Creates and returns a new using - the as the - . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Convert between string and - - - - Supports conversion from string to type, - and from a type to a string. - - - The string is used as the - of the . - - - - - - Nicko Cadell - - - - Can the target type be converted to the type supported by this object - - A that represents the type you want to convert to - true if the conversion is possible - - - Returns true if the is - assignable from a type. - - - - - - Converts the given value object to the specified type, using the arguments - - the object to convert - The Type to convert the value parameter to - the converted object - - - Uses the method to convert the - argument to a . - - - - The object cannot be converted to the - . To check for this condition use the - method. - - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a PatternString - the PatternString - - - Creates and returns a new using - the as the - . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a Type - the Type - - - Uses the method to convert the - argument to a . - Additional effort is made to locate partially specified types - by searching the loaded assemblies. - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Attribute used to associate a type converter - - - - Class and Interface level attribute that specifies a type converter - to use with the associated type. - - - To associate a type converter with a target type apply a - TypeConverterAttribute to the target type. Specify the - type of the type converter on the attribute. - - - Nicko Cadell - Gert Driesen - - - - The string type name of the type converter - - - - - Default constructor - - - - Default constructor - - - - - - Create a new type converter attribute for the specified type name - - The string type name of the type converter - - - The type specified must implement the - or the interfaces. - - - - - - Create a new type converter attribute for the specified type - - The type of the type converter - - - The type specified must implement the - or the interfaces. - - - - - - The string type name of the type converter - - - The string type name of the type converter - - - - The type specified must implement the - or the interfaces. - - - - - - A straightforward implementation of the interface. - - - - This is the default implementation of the - interface. Implementors of the interface - should aggregate an instance of this type. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Append on on all attached appenders. - - The event being logged. - The number of appenders called. - - - Calls the method on all - attached appenders. - - - - - - Append on on all attached appenders. - - The array of events being logged. - The number of appenders called. - - - Calls the method on all - attached appenders. - - - - - - Calls the DoAppende method on the with - the objects supplied. - - The appender - The events - - - If the supports the - interface then the will be passed - through using that interface. Otherwise the - objects in the array will be passed one at a time. - - - - - - Attaches an appender. - - The appender to add. - - - If the appender is already in the list it won't be added again. - - - - - - Gets an attached appender with the specified name. - - The name of the appender to get. - - The appender with the name specified, or null if no appender with the - specified name is found. - - - - Lookup an attached appender by name. - - - - - - Removes all attached appenders. - - - - Removes and closes all attached appenders - - - - - - Removes the specified appender from the list of attached appenders. - - The appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - List of appenders - - - - - Array of appenders, used to cache the m_appenderList - - - - - Gets all attached appenders. - - - A collection of attached appenders, or null if there - are no attached appenders. - - - - The read only collection of all currently attached appenders. - - - - - - This class aggregates several PropertiesDictionary collections together. - - - - Provides a dictionary style lookup over an ordered list of - collections. - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Add a Properties Dictionary to this composite collection - - the properties to add - - - Properties dictionaries added first take precedence over dictionaries added - later. - - - - - - Flatten this composite collection into a single properties dictionary - - the flattened dictionary - - - Reduces the collection of ordered dictionaries to a single dictionary - containing the resultant values for the keys. - - - - - - Gets the value of a property - - - The value for the property with the specified key - - - - Looks up the value for the specified. - The collections are searched - in the order in which they were added to this collection. The value - returned is the value held by the first collection that contains - the specified key. - - - If none of the collections contain the specified key then - null is returned. - - - - - - Base class for Context Properties implementations - - - - This class defines a basic property get set accessor - - - Nicko Cadell - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Subclass of that maintains a count of - the number of bytes written. - - - - This writer counts the number of bytes written. - - - Nicko Cadell - Gert Driesen - - - - that does not leak exceptions - - - - does not throw exceptions when things go wrong. - Instead, it delegates error handling to its . - - - Nicko Cadell - Gert Driesen - - - - Adapter that extends and forwards all - messages to an instance of . - - - - Adapter that extends and forwards all - messages to an instance of . - - - Nicko Cadell - - - - The writer to forward messages to - - - - - Create an instance of that forwards all - messages to a . - - The to forward to - - - Create an instance of that forwards all - messages to a . - - - - - - Closes the writer and releases any system resources associated with the writer - - - - - - - - - Dispose this writer - - flag indicating if we are being disposed - - - Dispose this writer - - - - - - Flushes any buffered output - - - - Clears all buffers for the writer and causes any buffered data to be written - to the underlying device - - - - - - Writes a character to the wrapped TextWriter - - the value to write to the TextWriter - - - Writes a character to the wrapped TextWriter - - - - - - Writes a character buffer to the wrapped TextWriter - - the data buffer - the start index - the number of characters to write - - - Writes a character buffer to the wrapped TextWriter - - - - - - Writes a string to the wrapped TextWriter - - the value to write to the TextWriter - - - Writes a string to the wrapped TextWriter - - - - - - Gets or sets the underlying . - - - The underlying . - - - - Gets or sets the underlying . - - - - - - The Encoding in which the output is written - - - The - - - - The Encoding in which the output is written - - - - - - Gets an object that controls formatting - - - The format provider - - - - Gets an object that controls formatting - - - - - - Gets or sets the line terminator string used by the TextWriter - - - The line terminator to use - - - - Gets or sets the line terminator string used by the TextWriter - - - - - - Constructor - - the writer to actually write to - the error handler to report error to - - - Create a new QuietTextWriter using a writer and error handler - - - - - - Writes a character to the underlying writer - - the char to write - - - Writes a character to the underlying writer - - - - - - Writes a buffer to the underlying writer - - the buffer to write - the start index to write from - the number of characters to write - - - Writes a buffer to the underlying writer - - - - - - Writes a string to the output. - - The string data to write to the output. - - - Writes a string to the output. - - - - - - Closes the underlying output writer. - - - - Closes the underlying output writer. - - - - - - The error handler instance to pass all errors to - - - - - Flag to indicate if this writer is closed - - - - - Gets or sets the error handler that all errors are passed to. - - - The error handler that all errors are passed to. - - - - Gets or sets the error handler that all errors are passed to. - - - - - - Gets a value indicating whether this writer is closed. - - - true if this writer is closed, otherwise false. - - - - Gets a value indicating whether this writer is closed. - - - - - - Constructor - - The to actually write to. - The to report errors to. - - - Creates a new instance of the class - with the specified and . - - - - - - Writes a character to the underlying writer and counts the number of bytes written. - - the char to write - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Writes a buffer to the underlying writer and counts the number of bytes written. - - the buffer to write - the start index to write from - the number of characters to write - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Writes a string to the output and counts the number of bytes written. - - The string data to write to the output. - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Total number of bytes written. - - - - - Gets or sets the total number of bytes written. - - - The total number of bytes written. - - - - Gets or sets the total number of bytes written. - - - - - - A fixed size rolling buffer of logging events. - - - - An array backed fixed size leaky bucket. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The maximum number of logging events in the buffer. - - - Initializes a new instance of the class with - the specified maximum number of buffered logging events. - - - The argument is not a positive integer. - - - - Appends a to the buffer. - - The event to append to the buffer. - The event discarded from the buffer, if the buffer is full, otherwise null. - - - Append an event to the buffer. If the buffer still contains free space then - null is returned. If the buffer is full then an event will be dropped - to make space for the new event, the event dropped is returned. - - - - - - Get and remove the oldest event in the buffer. - - The oldest logging event in the buffer - - - Gets the oldest (first) logging event in the buffer and removes it - from the buffer. - - - - - - Pops all the logging events from the buffer into an array. - - An array of all the logging events in the buffer. - - - Get all the events in the buffer and clear the buffer. - - - - - - Clear the buffer - - - - Clear the buffer of all events. The events in the buffer are lost. - - - - - - Gets the th oldest event currently in the buffer. - - The th oldest event currently in the buffer. - - - If is outside the range 0 to the number of events - currently in the buffer, then null is returned. - - - - - - Gets the maximum size of the buffer. - - The maximum size of the buffer. - - - Gets the maximum size of the buffer - - - - - - Gets the number of logging events in the buffer. - - The number of logging events in the buffer. - - - This number is guaranteed to be in the range 0 to - (inclusive). - - - - - - An always empty . - - - - A singleton implementation of the - interface that always represents an empty collection. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Copies the elements of the to an - , starting at a particular Array index. - - The one-dimensional - that is the destination of the elements copied from - . The Array must have zero-based - indexing. - The zero-based index in array at which - copying begins. - - - As the collection is empty no values are copied into the array. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - The singleton instance of the empty collection. - - - - - Gets the singleton instance of the empty collection. - - The singleton instance of the empty collection. - - - Gets the singleton instance of the empty collection. - - - - - - Gets a value indicating if access to the is synchronized (thread-safe). - - - true if access to the is synchronized (thread-safe); otherwise, false. - - - - For the this property is always true. - - - - - - Gets the number of elements contained in the . - - - The number of elements contained in the . - - - - As the collection is empty the is always 0. - - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - As the collection is empty and thread safe and synchronized this instance is also - the object. - - - - - - An always empty . - - - - A singleton implementation of the - interface that always represents an empty collection. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Copies the elements of the to an - , starting at a particular Array index. - - The one-dimensional - that is the destination of the elements copied from - . The Array must have zero-based - indexing. - The zero-based index in array at which - copying begins. - - - As the collection is empty no values are copied into the array. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - Adds an element with the provided key and value to the - . - - The to use as the key of the element to add. - The to use as the value of the element to add. - - - As the collection is empty no new values can be added. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - Removes all elements from the . - - - - As the collection is empty no values can be removed. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - Determines whether the contains an element - with the specified key. - - The key to locate in the . - false - - - As the collection is empty the method always returns false. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - Removes the element with the specified key from the . - - The key of the element to remove. - - - As the collection is empty no values can be removed. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - The singleton instance of the empty dictionary. - - - - - Gets the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets a value indicating if access to the is synchronized (thread-safe). - - - true if access to the is synchronized (thread-safe); otherwise, false. - - - - For the this property is always true. - - - - - - Gets the number of elements contained in the - - - The number of elements contained in the . - - - - As the collection is empty the is always 0. - - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - As the collection is empty and thread safe and synchronized this instance is also - the object. - - - - - - Gets a value indicating whether the has a fixed size. - - true - - - As the collection is empty always returns true. - - - - - - Gets a value indicating whether the is read-only. - - true - - - As the collection is empty always returns true. - - - - - - Gets an containing the keys of the . - - An containing the keys of the . - - - As the collection is empty a is returned. - - - - - - Gets an containing the values of the . - - An containing the values of the . - - - As the collection is empty a is returned. - - - - - - Gets or sets the element with the specified key. - - The key of the element to get or set. - null - - - As the collection is empty no values can be looked up or stored. - If the index getter is called then null is returned. - A is thrown if the setter is called. - - - This dictionary is always empty and cannot be modified. - - - - Contain the information obtained when parsing formatting modifiers - in conversion modifiers. - - - - Holds the formatting information extracted from the format string by - the . This is used by the - objects when rendering the output. - - - Nicko Cadell - Gert Driesen - - - - Defaut Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - - - Initializes a new instance of the class - with the specified parameters. - - - - - - Gets or sets the minimum value. - - - The minimum value. - - - - Gets or sets the minimum value. - - - - - - Gets or sets the maximum value. - - - The maximum value. - - - - Gets or sets the maximum value. - - - - - - Gets or sets a flag indicating whether left align is enabled - or not. - - - A flag indicating whether left align is enabled or not. - - - - Gets or sets a flag indicating whether left align is enabled or not. - - - - - - Implementation of Properties collection for the - - - - This class implements a properties collection that is thread safe and supports both - storing properties and capturing a read only copy of the current propertied. - - - This class is optimized to the scenario where the properties are read frequently - and are modified infrequently. - - - Nicko Cadell - - - - The read only copy of the properties. - - - - This variable is declared volatile to prevent the compiler and JIT from - reordering reads and writes of this thread performed on different threads. - - - - - - Lock object used to synchronize updates within this instance - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property from the global context - - the key for the entry to remove - - - Removing an entry from the global context properties is relatively expensive compared - with reading a value. - - - - - - Clear the global context properties - - - - - Get a readonly immutable copy of the properties - - the current global context properties - - - This implementation is fast because the GlobalContextProperties class - stores a readonly copy of the properties. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Reading the value for a key is faster than setting the value. - When the value is written a new read only copy of - the properties is created. - - - - - - Manages a mapping from levels to - - - - Manages an ordered mapping from instances - to subclasses. - - - Nicko Cadell - - - - Default constructor - - - - Initialise a new instance of . - - - - - - Add a to this mapping - - the entry to add - - - If a has previously been added - for the same then that entry will be - overwritten. - - - - - - Lookup the mapping for the specified level - - the level to lookup - the for the level or null if no mapping found - - - Lookup the value for the specified level. Finds the nearest - mapping value for the level that is equal to or less than the - specified. - - - If no mapping could be found then null is returned. - - - - - - Initialize options - - - - Caches the sorted list of in an array - - - - - - Implementation of Properties collection for the - - - - Class implements a collection of properties that is specific to each thread. - The class is not synchronized as each thread has its own . - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property - - the key for the entry to remove - - - Remove the value for the specified from the context. - - - - - - Clear all the context properties - - - - Clear all the context properties - - - - - - Get the PropertiesDictionary stored in the LocalDataStoreSlot for this thread. - - create the dictionary if it does not exist, otherwise return null if is does not exist - the properties for this thread - - - The collection returned is only to be used on the calling thread. If the - caller needs to share the collection between different threads then the - caller must clone the collection before doings so. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Get or set the property value for the specified. - - - - - - Outputs log statements from within the log4net assembly. - - - - Log4net components cannot make log4net logging calls. However, it is - sometimes useful for the user to learn about what log4net is - doing. - - - All log4net internal debug calls go to the standard output stream - whereas internal error messages are sent to the standard error output - stream. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Static constructor that initializes logging by reading - settings from the application configuration file. - - - - The log4net.Internal.Debug application setting - controls internal debugging. This setting should be set - to true to enable debugging. - - - The log4net.Internal.Quiet application setting - suppresses all internal logging including error messages. - This setting should be set to true to enable message - suppression. - - - - - - Writes log4net internal debug messages to the - standard output stream. - - The message to log. - - - All internal debug messages are prepended with - the string "log4net: ". - - - - - - Writes log4net internal debug messages to the - standard output stream. - - The message to log. - An exception to log. - - - All internal debug messages are prepended with - the string "log4net: ". - - - - - - Writes log4net internal warning messages to the - standard error stream. - - The message to log. - - - All internal warning messages are prepended with - the string "log4net:WARN ". - - - - - - Writes log4net internal warning messages to the - standard error stream. - - The message to log. - An exception to log. - - - All internal warning messages are prepended with - the string "log4net:WARN ". - - - - - - Writes log4net internal error messages to the - standard error stream. - - The message to log. - - - All internal error messages are prepended with - the string "log4net:ERROR ". - - - - - - Writes log4net internal error messages to the - standard error stream. - - The message to log. - An exception to log. - - - All internal debug messages are prepended with - the string "log4net:ERROR ". - - - - - - Writes output to the standard output stream. - - The message to log. - - - Writes to both Console.Out and System.Diagnostics.Trace. - Note that the System.Diagnostics.Trace is not supported - on the Compact Framework. - - - If the AppDomain is not configured with a config file then - the call to System.Diagnostics.Trace may fail. This is only - an issue if you are programmatically creating your own AppDomains. - - - - - - Writes output to the standard error stream. - - The message to log. - - - Writes to both Console.Error and System.Diagnostics.Trace. - Note that the System.Diagnostics.Trace is not supported - on the Compact Framework. - - - If the AppDomain is not configured with a config file then - the call to System.Diagnostics.Trace may fail. This is only - an issue if you are programmatically creating your own AppDomains. - - - - - - Default debug level - - - - - In quietMode not even errors generate any output. - - - - - Gets or sets a value indicating whether log4net internal logging - is enabled or disabled. - - - true if log4net internal logging is enabled, otherwise - false. - - - - When set to true, internal debug level logging will be - displayed. - - - This value can be set by setting the application setting - log4net.Internal.Debug in the application configuration - file. - - - The default value is false, i.e. debugging is - disabled. - - - - - The following example enables internal debugging using the - application configuration file : - - - - - - - - - - - - - Gets or sets a value indicating whether log4net should generate no output - from internal logging, not even for errors. - - - true if log4net should generate no output at all from internal - logging, otherwise false. - - - - When set to true will cause internal logging at all levels to be - suppressed. This means that no warning or error reports will be logged. - This option overrides the setting and - disables all debug also. - - This value can be set by setting the application setting - log4net.Internal.Quiet in the application configuration file. - - - The default value is false, i.e. internal logging is not - disabled. - - - - The following example disables internal logging using the - application configuration file : - - - - - - - - - - - - Test if LogLog.Debug is enabled for output. - - - true if Debug is enabled - - - - Test if LogLog.Debug is enabled for output. - - - - - - Test if LogLog.Warn is enabled for output. - - - true if Warn is enabled - - - - Test if LogLog.Warn is enabled for output. - - - - - - Test if LogLog.Error is enabled for output. - - - true if Error is enabled - - - - Test if LogLog.Error is enabled for output. - - - - - - Represents a native error code and message. - - - - Represents a Win32 platform native error. - - - Nicko Cadell - Gert Driesen - - - - Create an instance of the class with the specified - error number and message. - - The number of the native error. - The message of the native error. - - - Create an instance of the class with the specified - error number and message. - - - - - - Create a new instance of the class for the last Windows error. - - - An instance of the class for the last windows error. - - - - The message for the error number is lookup up using the - native Win32 FormatMessage function. - - - - - - Create a new instance of the class. - - the error number for the native error - - An instance of the class for the specified - error number. - - - - The message for the specified error number is lookup up using the - native Win32 FormatMessage function. - - - - - - Retrieves the message corresponding with a Win32 message identifier. - - Message identifier for the requested message. - - The message corresponding with the specified message identifier. - - - - The message will be searched for in system message-table resource(s) - using the native FormatMessage function. - - - - - - Return error information string - - error information string - - - Return error information string - - - - - - Formats a message string. - - Formatting options, and how to interpret the parameter. - Location of the message definition. - Message identifier for the requested message. - Language identifier for the requested message. - If includes FORMAT_MESSAGE_ALLOCATE_BUFFER, the function allocates a buffer using the LocalAlloc function, and places the pointer to the buffer at the address specified in . - If the FORMAT_MESSAGE_ALLOCATE_BUFFER flag is not set, this parameter specifies the maximum number of TCHARs that can be stored in the output buffer. If FORMAT_MESSAGE_ALLOCATE_BUFFER is set, this parameter specifies the minimum number of TCHARs to allocate for an output buffer. - Pointer to an array of values that are used as insert values in the formatted message. - - - The function requires a message definition as input. The message definition can come from a - buffer passed into the function. It can come from a message table resource in an - already-loaded module. Or the caller can ask the function to search the system's message - table resource(s) for the message definition. The function finds the message definition - in a message table resource based on a message identifier and a language identifier. - The function copies the formatted message text to an output buffer, processing any embedded - insert sequences if requested. - - - To prevent the usage of unsafe code, this stub does not support inserting values in the formatted message. - - - - - If the function succeeds, the return value is the number of TCHARs stored in the output - buffer, excluding the terminating null character. - - - If the function fails, the return value is zero. To get extended error information, - call . - - - - - - Gets the number of the native error. - - - The number of the native error. - - - - Gets the number of the native error. - - - - - - Gets the message of the native error. - - - The message of the native error. - - - - - Gets the message of the native error. - - - - - An always empty . - - - - A singleton implementation of the over a collection - that is empty and not modifiable. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Test if the enumerator can advance, if so advance. - - false as the cannot advance. - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will always return false. - - - - - - Resets the enumerator back to the start. - - - - As the enumerator is over an empty collection does nothing. - - - - - - The singleton instance of the . - - - - - Gets the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets the current object from the enumerator. - - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current key from the enumerator. - - - Throws an exception because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current value from the enumerator. - - The current value from the enumerator. - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current entry from the enumerator. - - - Throws an because the - never has a current entry. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - An always empty . - - - - A singleton implementation of the over a collection - that is empty and not modifiable. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Test if the enumerator can advance, if so advance - - false as the cannot advance. - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will always return false. - - - - - - Resets the enumerator back to the start. - - - - As the enumerator is over an empty collection does nothing. - - - - - - The singleton instance of the . - - - - - Get the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets the current object from the enumerator. - - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - A SecurityContext used when a SecurityContext is not required - - - - The is a no-op implementation of the - base class. It is used where a - is required but one has not been provided. - - - Nicko Cadell - - - - Singleton instance of - - - - Singleton instance of - - - - - - Private constructor - - - - Private constructor for singleton pattern. - - - - - - Impersonate this SecurityContext - - State supplied by the caller - null - - - No impersonation is done and null is always returned. - - - - - - Implements log4net's default error handling policy which consists - of emitting a message for the first error in an appender and - ignoring all subsequent errors. - - - - The error message is printed on the standard error output stream. - - - This policy aims at protecting an otherwise working application - from being flooded with error messages when logging fails. - - - Nicko Cadell - Gert Driesen - - - - Default Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - The prefix to use for each message. - - - Initializes a new instance of the class - with the specified prefix. - - - - - - Log an Error - - The error message. - The exception. - The internal error code. - - - Prints the message and the stack trace of the exception on the standard - error output stream. - - - - - - Log an Error - - The error message. - The exception. - - - Prints the message and the stack trace of the exception on the standard - error output stream. - - - - - - Log an error - - The error message. - - - Print a the error message passed as parameter on the standard - error output stream. - - - - - - Flag to indicate if it is the first error - - - - - String to prefix each message with - - - - - Is error logging enabled - - - - Is error logging enabled. Logging is only enabled for the - first error delivered to the . - - - - - - A convenience class to convert property values to specific types. - - - - Utility functions for converting types and parsing values. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Converts a string to a value. - - String to convert. - The default value. - The value of . - - - If is "true", then true is returned. - If is "false", then false is returned. - Otherwise, is returned. - - - - - - Parses a file size into a number. - - String to parse. - The default value. - The value of . - - - Parses a file size of the form: number[KB|MB|GB] into a - long value. It is scaled with the appropriate multiplier. - - - is returned when - cannot be converted to a value. - - - - - - Converts a string to an object. - - The target type to convert to. - The string to convert to an object. - - The object converted from a string or null when the - conversion failed. - - - - Converts a string to an object. Uses the converter registry to try - to convert the string value into the specified target type. - - - - - - Checks if there is an appropriate type conversion from the source type to the target type. - - The type to convert from. - The type to convert to. - true if there is a conversion from the source type to the target type. - - Checks if there is an appropriate type conversion from the source type to the target type. - - - - - - - Converts an object to the target type. - - The object to convert to the target type. - The type to convert to. - The converted object. - - - Converts an object to the target type. - - - - - - Instantiates an object given a class name. - - The fully qualified class name of the object to instantiate. - The class to which the new object should belong. - The object to return in case of non-fulfillment. - - An instance of the or - if the object could not be instantiated. - - - - Checks that the is a subclass of - . If that test fails or the object could - not be instantiated, then is returned. - - - - - - Performs variable substitution in string from the - values of keys found in . - - The string on which variable substitution is performed. - The dictionary to use to lookup variables. - The result of the substitutions. - - - The variable substitution delimiters are ${ and }. - - - For example, if props contains key=value, then the call - - - - string s = OptionConverter.SubstituteVariables("Value of key is ${key}."); - - - - will set the variable s to "Value of key is value.". - - - If no value could be found for the specified key, then substitution - defaults to an empty string. - - - For example, if system properties contains no value for the key - "nonExistentKey", then the call - - - - string s = OptionConverter.SubstituteVariables("Value of nonExistentKey is [${nonExistentKey}]"); - - - - will set s to "Value of nonExistentKey is []". - - - An Exception is thrown if contains a start - delimiter "${" which is not balanced by a stop delimiter "}". - - - - - - Converts the string representation of the name or numeric value of one or - more enumerated constants to an equivalent enumerated object. - - The type to convert to. - The enum string value. - If true, ignore case; otherwise, regard case. - An object of type whose value is represented by . - - - - Most of the work of the class - is delegated to the PatternParser class. - - - - The PatternParser processes a pattern string and - returns a chain of objects. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The pattern to parse. - - - Initializes a new instance of the class - with the specified pattern string. - - - - - - Parses the pattern into a chain of pattern converters. - - The head of a chain of pattern converters. - - - Parses the pattern into a chain of pattern converters. - - - - - - Build the unified cache of converters from the static and instance maps - - the list of all the converter names - - - Build the unified cache of converters from the static and instance maps - - - - - - Internal method to parse the specified pattern to find specified matches - - the pattern to parse - the converter names to match in the pattern - - - The matches param must be sorted such that longer strings come before shorter ones. - - - - - - Process a parsed literal - - the literal text - - - - Process a parsed converter pattern - - the name of the converter - the optional option for the converter - the formatting info for the converter - - - - Resets the internal state of the parser and adds the specified pattern converter - to the chain. - - The pattern converter to add. - - - - The first pattern converter in the chain - - - - - the last pattern converter in the chain - - - - - The pattern - - - - - Internal map of converter identifiers to converter types - - - - This map overrides the static s_globalRulesRegistry map. - - - - - - Get the converter registry used by this parser - - - The converter registry used by this parser - - - - Get the converter registry used by this parser - - - - - - Sort strings by length - - - - that orders strings by string length. - The longest strings are placed first - - - - - - This class implements a patterned string. - - - - This string has embedded patterns that are resolved and expanded - when the string is formatted. - - - This class functions similarly to the - in that it accepts a pattern and renders it to a string. Unlike the - however the PatternString - does not render the properties of a specific but - of the process in general. - - - The recognized conversion pattern names are: - - - - Conversion Pattern Name - Effect - - - appdomain - - - Used to output the friendly name of the current AppDomain. - - - - - date - - - Used to output the date of the logging event in the local time zone. - To output the date in universal time use the %utcdate pattern. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %date{HH:mm:ss,fff} or - %date{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %date{ISO8601} or %date{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - env - - - Used to output the a specific environment variable. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %env{COMPUTERNAME} would include the value - of the COMPUTERNAME environment variable. - - - The env pattern is not supported on the .NET Compact Framework. - - - - - identity - - - Used to output the user name for the currently active user - (Principal.Identity.Name). - - - - - newline - - - Outputs the platform dependent line separator character or - characters. - - - This conversion pattern name offers the same performance as using - non-portable line separator strings such as "\n", or "\r\n". - Thus, it is the preferred way of specifying a line separator. - - - - - processid - - - Used to output the system process ID for the current process. - - - - - property - - - Used to output a specific context property. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %property{user} would include the value - from the property that is keyed by the string 'user'. Each property value - that is to be included in the log must be specified separately. - Properties are stored in logging contexts. By default - the log4net:HostName property is set to the name of machine on - which the event was originally logged. - - - If no key is specified, e.g. %property then all the keys and their - values are printed in a comma separated list. - - - The properties of an event are combined from a number of different - contexts. These are listed below in the order in which they are searched. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - random - - - Used to output a random string of characters. The string is made up of - uppercase letters and numbers. By default the string is 4 characters long. - The length of the string can be specified within braces directly following the - pattern specifier, e.g. %random{8} would output an 8 character string. - - - - - username - - - Used to output the WindowsIdentity for the currently - active user. - - - - - utcdate - - - Used to output the date of the logging event in universal time. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %utcdate{HH:mm:ss,fff} or - %utcdate{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %utcdate{ISO8601} or %utcdate{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - % - - - The sequence %% outputs a single percent sign. - - - - - - Additional pattern converters may be registered with a specific - instance using or - . - - - See the for details on the - format modifiers supported by the patterns. - - - Nicko Cadell - - - - Internal map of converter identifiers to converter types. - - - - - the pattern - - - - - the head of the pattern converter chain - - - - - patterns defined on this PatternString only - - - - - Initialize the global registry - - - - - Default constructor - - - - Initialize a new instance of - - - - - - Constructs a PatternString - - The pattern to use with this PatternString - - - Initialize a new instance of with the pattern specified. - - - - - - Initialize object options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Create the used to parse the pattern - - the pattern to parse - The - - - Returns PatternParser used to parse the conversion string. Subclasses - may override this to return a subclass of PatternParser which recognize - custom conversion pattern name. - - - - - - Produces a formatted string as specified by the conversion pattern. - - The TextWriter to write the formatted event to - - - Format the pattern to the . - - - - - - Format the pattern as a string - - the pattern formatted as a string - - - Format the pattern to a string. - - - - - - Add a converter to this PatternString - - the converter info - - - This version of the method is used by the configurator. - Programmatic users should use the alternative method. - - - - - - Add a converter to this PatternString - - the name of the conversion pattern for this converter - the type of the converter - - - Add a converter to this PatternString - - - - - - Gets or sets the pattern formatting string - - - The pattern formatting string - - - - The ConversionPattern option. This is the string which - controls formatting and consists of a mix of literal content and - conversion specifiers. - - - - - - Wrapper class used to map converter names to converter types - - - - Wrapper class used to map converter names to converter types - - - - - - default constructor - - - - - Gets or sets the name of the conversion pattern - - - The name of the conversion pattern - - - - Gets or sets the name of the conversion pattern - - - - - - Gets or sets the type of the converter - - - The type of the converter - - - - Gets or sets the type of the converter - - - - - - String keyed object map. - - - - While this collection is serializable only member - objects that are serializable will - be serialized along with this collection. - - - Nicko Cadell - Gert Driesen - - - - String keyed object map that is read only. - - - - This collection is readonly and cannot be modified. - - - While this collection is serializable only member - objects that are serializable will - be serialized along with this collection. - - - Nicko Cadell - Gert Driesen - - - - The Hashtable used to store the properties data - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Copy Constructor - - properties to copy - - - Initializes a new instance of the class. - - - - - - Deserialization constructor - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Gets the key names. - - An array of all the keys. - - - Gets the key names. - - - - - - Test if the dictionary contains a specified key - - the key to look for - true if the dictionary contains the specified key - - - Test if the dictionary contains a specified key - - - - - - Serializes this object into the provided. - - The to populate with data. - The destination for this serialization. - - - Serializes this object into the provided. - - - - - - See - - - - - See - - - - - - See - - - - - - - Remove all properties from the properties collection - - - - - See - - - - - - - See - - - - - - - See - - - - - Gets or sets the value of the property with the specified key. - - - The value of the property with the specified key. - - The key of the property to get or set. - - - The property value will only be serialized if it is serializable. - If it cannot be serialized it will be silently ignored if - a serialization operation is performed. - - - - - - The hashtable used to store the properties - - - The internal collection used to store the properties - - - - The hashtable used to store the properties - - - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - The number of properties in this collection - - - - - See - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - properties to copy - - - Initializes a new instance of the class. - - - - - - Initializes a new instance of the class - with serialized data. - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Because this class is sealed the serialization constructor is private. - - - - - - Remove the entry with the specified key from this dictionary - - the key for the entry to remove - - - Remove the entry with the specified key from this dictionary - - - - - - See - - an enumerator - - - Returns a over the contest of this collection. - - - - - - See - - the key to remove - - - Remove the entry with the specified key from this dictionary - - - - - - See - - the key to lookup in the collection - true if the collection contains the specified key - - - Test if this collection contains a specified key. - - - - - - Remove all properties from the properties collection - - - - Remove all properties from the properties collection - - - - - - See - - the key - the value to store for the key - - - Store a value for the specified . - - - Thrown if the is not a string - - - - See - - - - - - - See - - - - - Gets or sets the value of the property with the specified key. - - - The value of the property with the specified key. - - The key of the property to get or set. - - - The property value will only be serialized if it is serializable. - If it cannot be serialized it will be silently ignored if - a serialization operation is performed. - - - - - - See - - - false - - - - This collection is modifiable. This property always - returns false. - - - - - - See - - - The value for the key specified. - - - - Get or set a value for the specified . - - - Thrown if the is not a string - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - A that ignores the message - - - - This writer is used in special cases where it is necessary - to protect a writer from being closed by a client. - - - Nicko Cadell - - - - Constructor - - the writer to actually write to - - - Create a new ProtectCloseTextWriter using a writer - - - - - - Attach this instance to a different underlying - - the writer to attach to - - - Attach this instance to a different underlying - - - - - - Does not close the underlying output writer. - - - - Does not close the underlying output writer. - This method does nothing. - - - - - - Defines a lock that supports single writers and multiple readers - - - - ReaderWriterLock is used to synchronize access to a resource. - At any given time, it allows either concurrent read access for - multiple threads, or write access for a single thread. In a - situation where a resource is changed infrequently, a - ReaderWriterLock provides better throughput than a simple - one-at-a-time lock, such as . - - - If a platform does not support a System.Threading.ReaderWriterLock - implementation then all readers and writers are serialized. Therefore - the caller must not rely on multiple simultaneous readers. - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Acquires a reader lock - - - - blocks if a different thread has the writer - lock, or if at least one thread is waiting for the writer lock. - - - - - - Decrements the lock count - - - - decrements the lock count. When the count - reaches zero, the lock is released. - - - - - - Acquires the writer lock - - - - This method blocks if another thread has a reader lock or writer lock. - - - - - - Decrements the lock count on the writer lock - - - - ReleaseWriterLock decrements the writer lock count. - When the count reaches zero, the writer lock is released. - - - - - - A that can be and reused - - - - A that can be and reused. - This uses a single buffer for string operations. - - - Nicko Cadell - - - - Create an instance of - - the format provider to use - - - Create an instance of - - - - - - Override Dispose to prevent closing of writer - - flag - - - Override Dispose to prevent closing of writer - - - - - - Reset this string writer so that it can be reused. - - the maximum buffer capacity before it is trimmed - the default size to make the buffer - - - Reset this string writer so that it can be reused. - The internal buffers are cleared and reset. - - - - - - Utility class for system specific information. - - - - Utility class of static methods for system specific information. - - - Nicko Cadell - Gert Driesen - Alexey Solofnenko - - - - Private constructor to prevent instances. - - - - Only static methods are exposed from this type. - - - - - - Initialize default values for private static fields. - - - - Only static methods are exposed from this type. - - - - - - Gets the assembly location path for the specified assembly. - - The assembly to get the location for. - The location of the assembly. - - - This method does not guarantee to return the correct path - to the assembly. If only tries to give an indication as to - where the assembly was loaded from. - - - - - - Gets the fully qualified name of the , including - the name of the assembly from which the was - loaded. - - The to get the fully qualified name for. - The fully qualified name for the . - - - This is equivalent to the Type.AssemblyQualifiedName property, - but this method works on the .NET Compact Framework 1.0 as well as - the full .NET runtime. - - - - - - Gets the short name of the . - - The to get the name for. - The short name of the . - - - The short name of the assembly is the - without the version, culture, or public key. i.e. it is just the - assembly's file name without the extension. - - - Use this rather than Assembly.GetName().Name because that - is not available on the Compact Framework. - - - Because of a FileIOPermission security demand we cannot do - the obvious Assembly.GetName().Name. We are allowed to get - the of the assembly so we - start from there and strip out just the assembly name. - - - - - - Gets the file name portion of the , including the extension. - - The to get the file name for. - The file name of the assembly. - - - Gets the file name portion of the , including the extension. - - - - - - Loads the type specified in the type string. - - A sibling type to use to load the type. - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified, it will be loaded from the assembly - containing the specified relative type. If the type is not found in the assembly - then all the loaded assemblies will be searched for the type. - - - - - - Loads the type specified in the type string. - - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified it will be loaded from the - assembly that is directly calling this method. If the type is not found - in the assembly then all the loaded assemblies will be searched for the type. - - - - - - Loads the type specified in the type string. - - An assembly to load the type from. - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified it will be loaded from the specified - assembly. If the type is not found in the assembly then all the loaded assemblies - will be searched for the type. - - - - - - Generate a new guid - - A new Guid - - - Generate a new guid - - - - - - Create an - - The name of the parameter that caused the exception - The value of the argument that causes this exception - The message that describes the error - the ArgumentOutOfRangeException object - - - Create a new instance of the class - with a specified error message, the parameter name, and the value - of the argument. - - - The Compact Framework does not support the 3 parameter constructor for the - type. This method provides an - implementation that works for all platforms. - - - - - - Parse a string into an value - - the string to parse - out param where the parsed value is placed - true if the string was able to be parsed into an integer - - - Attempts to parse the string into an integer. If the string cannot - be parsed then this method returns false. The method does not throw an exception. - - - - - - Parse a string into an value - - the string to parse - out param where the parsed value is placed - true if the string was able to be parsed into an integer - - - Attempts to parse the string into an integer. If the string cannot - be parsed then this method returns false. The method does not throw an exception. - - - - - - Lookup an application setting - - the application settings key to lookup - the value for the key, or null - - - Configuration APIs are not supported under the Compact Framework - - - - - - Convert a path into a fully qualified local file path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - The path specified must be a local file path, a URI is not supported. - - - - - - Creates a new case-insensitive instance of the class with the default initial capacity. - - A new case-insensitive instance of the class with the default initial capacity - - - The new Hashtable instance uses the default load factor, the CaseInsensitiveHashCodeProvider, and the CaseInsensitiveComparer. - - - - - - Gets an empty array of types. - - - - The Type.EmptyTypes field is not available on - the .NET Compact Framework 1.0. - - - - - - Cache the host name for the current machine - - - - - Cache the application friendly name - - - - - Text to output when a null is encountered. - - - - - Text to output when an unsupported feature is requested. - - - - - Start time for the current process. - - - - - Gets the system dependent line terminator. - - - The system dependent line terminator. - - - - Gets the system dependent line terminator. - - - - - - Gets the base directory for this . - - The base directory path for the current . - - - Gets the base directory for this . - - - The value returned may be either a local file path or a URI. - - - - - - Gets the path to the configuration file for the current . - - The path to the configuration file for the current . - - - The .NET Compact Framework 1.0 does not have a concept of a configuration - file. For this runtime, we use the entry assembly location as the root for - the configuration file name. - - - The value returned may be either a local file path or a URI. - - - - - - Gets the path to the file that first executed in the current . - - The path to the entry assembly. - - - Gets the path to the file that first executed in the current . - - - - - - Gets the ID of the current thread. - - The ID of the current thread. - - - On the .NET framework, the AppDomain.GetCurrentThreadId method - is used to obtain the thread ID for the current thread. This is the - operating system ID for the thread. - - - On the .NET Compact Framework 1.0 it is not possible to get the - operating system thread ID for the current thread. The native method - GetCurrentThreadId is implemented inline in a header file - and cannot be called. - - - On the .NET Framework 2.0 the Thread.ManagedThreadId is used as this - gives a stable id unrelated to the operating system thread ID which may - change if the runtime is using fibers. - - - - - - Get the host name or machine name for the current machine - - - The hostname or machine name - - - - Get the host name or machine name for the current machine - - - The host name () or - the machine name (Environment.MachineName) for - the current machine, or if neither of these are available - then NOT AVAILABLE is returned. - - - - - - Get this application's friendly name - - - The friendly name of this application as a string - - - - If available the name of the application is retrieved from - the AppDomain using AppDomain.CurrentDomain.FriendlyName. - - - Otherwise the file name of the entry assembly is used. - - - - - - Get the start time for the current process. - - - - This is the time at which the log4net library was loaded into the - AppDomain. Due to reports of a hang in the call to System.Diagnostics.Process.StartTime - this is not the start time for the current process. - - - The log4net library should be loaded by an application early during its - startup, therefore this start time should be a good approximation for - the actual start time. - - - Note that AppDomains may be loaded and unloaded within the - same process without the process terminating, however this start time - will be set per AppDomain. - - - - - - Text to output when a null is encountered. - - - - Use this value to indicate a null has been encountered while - outputting a string representation of an item. - - - The default value is (null). This value can be overridden by specifying - a value for the log4net.NullText appSetting in the application's - .config file. - - - - - - Text to output when an unsupported feature is requested. - - - - Use this value when an unsupported feature is requested. - - - The default value is NOT AVAILABLE. This value can be overridden by specifying - a value for the log4net.NotAvailableText appSetting in the application's - .config file. - - - - - - Utility class that represents a format string. - - - - Utility class that represents a format string. - - - Nicko Cadell - - - - Initialise the - - An that supplies culture-specific formatting information. - A containing zero or more format items. - An array containing zero or more objects to format. - - - - Format the string and arguments - - the formatted string - - - - Replaces the format item in a specified with the text equivalent - of the value of a corresponding instance in a specified array. - A specified parameter supplies culture-specific formatting information. - - An that supplies culture-specific formatting information. - A containing zero or more format items. - An array containing zero or more objects to format. - - A copy of format in which the format items have been replaced by the - equivalent of the corresponding instances of in args. - - - - This method does not throw exceptions. If an exception thrown while formatting the result the - exception and arguments are returned in the result string. - - - - - - Process an error during StringFormat - - - - - Dump the contents of an array into a string builder - - - - - Dump an object to a string - - - - - Implementation of Properties collection for the - - - - Class implements a collection of properties that is specific to each thread. - The class is not synchronized as each thread has its own . - - - Nicko Cadell - - - - The thread local data slot to use to store a PropertiesDictionary. - - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property - - the key for the entry to remove - - - Remove a property - - - - - - Clear all properties - - - - Clear all properties - - - - - - Get the PropertiesDictionary for this thread. - - create the dictionary if it does not exist, otherwise return null if is does not exist - the properties for this thread - - - The collection returned is only to be used on the calling thread. If the - caller needs to share the collection between different threads then the - caller must clone the collection before doing so. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Implementation of Stack for the - - - - Implementation of Stack for the - - - Nicko Cadell - - - - The stack store. - - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Clears all the contextual information held in this stack. - - - - Clears all the contextual information held in this stack. - Only call this if you think that this tread is being reused after - a previous call execution which may not have completed correctly. - You do not need to use this method if you always guarantee to call - the method of the - returned from even in exceptional circumstances, - for example by using the using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) - syntax. - - - - - - Removes the top context from this stack. - - The message in the context that was removed from the top of this stack. - - - Remove the top context from this stack, and return - it to the caller. If this stack is empty then an - empty string (not ) is returned. - - - - - - Pushes a new context message into this stack. - - The new context message. - - An that can be used to clean up the context stack. - - - - Pushes a new context onto this stack. An - is returned that can be used to clean up this stack. This - can be easily combined with the using keyword to scope the - context. - - - Simple example of using the Push method with the using keyword. - - using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) - { - log.Warn("This should have an ThreadContext Stack message"); - } - - - - - - Gets the current context information for this stack. - - The current context information. - - - - Gets the current context information for this stack. - - Gets the current context information - - - Gets the current context information for this stack. - - - - - - Get a portable version of this object - - the portable instance of this object - - - Get a cross thread portable version of this object - - - - - - The number of messages in the stack - - - The current number of messages in the stack - - - - The current number of messages in the stack. That is - the number of times has been called - minus the number of times has been called. - - - - - - Gets and sets the internal stack used by this - - The internal storage stack - - - This property is provided only to support backward compatability - of the . Tytpically the internal stack should not - be modified. - - - - - - Inner class used to represent a single context frame in the stack. - - - - Inner class used to represent a single context frame in the stack. - - - - - - Constructor - - The message for this context. - The parent context in the chain. - - - Initializes a new instance of the class - with the specified message and parent context. - - - - - - Get the message. - - The message. - - - Get the message. - - - - - - Gets the full text of the context down to the root level. - - - The full text of the context down to the root level. - - - - Gets the full text of the context down to the root level. - - - - - - Struct returned from the method. - - - - This struct implements the and is designed to be used - with the pattern to remove the stack frame at the end of the scope. - - - - - - The ThreadContextStack internal stack - - - - - The depth to trim the stack to when this instance is disposed - - - - - Constructor - - The internal stack used by the ThreadContextStack. - The depth to return the stack to when this object is disposed. - - - Initializes a new instance of the class with - the specified stack and return depth. - - - - - - Returns the stack to the correct depth. - - - - Returns the stack to the correct depth. - - - - - - Implementation of Stacks collection for the - - - - Implementation of Stacks collection for the - - - Nicko Cadell - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Gets the named thread context stack - - - The named stack - - - - Gets the named thread context stack - - - - - - Utility class for transforming strings. - - - - Utility class for transforming strings. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Write a string to an - - the writer to write to - the string to write - The string to replace non XML compliant chars with - - - The test is escaped either using XML escape entities - or using CDATA sections. - - - - - - Replace invalid XML characters in text string - - the XML text input string - the string to use in place of invalid characters - A string that does not contain invalid XML characters. - - - Certain Unicode code points are not allowed in the XML InfoSet, for - details see: http://www.w3.org/TR/REC-xml/#charsets. - - - This method replaces any illegal characters in the input string - with the mask string specified. - - - - - - Count the number of times that the substring occurs in the text - - the text to search - the substring to find - the number of times the substring occurs in the text - - - The substring is assumed to be non repeating within itself. - - - - - - Impersonate a Windows Account - - - - This impersonates a Windows account. - - - How the impersonation is done depends on the value of . - This allows the context to either impersonate a set of user credentials specified - using username, domain name and password or to revert to the process credentials. - - - - - - Default constructor - - - - Default constructor - - - - - - Initialize the SecurityContext based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The security context will try to Logon the specified user account and - capture a primary token for impersonation. - - - The required , - or properties were not specified. - - - - Impersonate the Windows account specified by the and properties. - - caller provided state - - An instance that will revoke the impersonation of this SecurityContext - - - - Depending on the property either - impersonate a user using credentials supplied or revert - to the process credentials. - - - - - - Create a given the userName, domainName and password. - - the user name - the domain name - the password - the for the account specified - - - Uses the Windows API call LogonUser to get a principal token for the account. This - token is used to initialize the WindowsIdentity. - - - - - - Gets or sets the impersonation mode for this security context - - - The impersonation mode for this security context - - - - Impersonate either a user with user credentials or - revert this thread to the credentials of the process. - The value is one of the - enum. - - - The default value is - - - When the mode is set to - the user's credentials are established using the - , and - values. - - - When the mode is set to - no other properties need to be set. If the calling thread is - impersonating then it will be reverted back to the process credentials. - - - - - - Gets or sets the Windows username for this security context - - - The Windows username for this security context - - - - This property must be set if - is set to (the default setting). - - - - - - Gets or sets the Windows domain name for this security context - - - The Windows domain name for this security context - - - - The default value for is the local machine name - taken from the property. - - - This property must be set if - is set to (the default setting). - - - - - - Sets the password for the Windows account specified by the and properties. - - - The password for the Windows account specified by the and properties. - - - - This property must be set if - is set to (the default setting). - - - - - - The impersonation modes for the - - - - See the property for - details. - - - - - - Impersonate a user using the credentials supplied - - - - - Revert this the thread to the credentials of the process - - - - - Adds to - - - - Helper class to expose the - through the interface. - - - - - - Constructor - - the impersonation context being wrapped - - - Constructor - - - - - - Revert the impersonation - - - - Revert the impersonation - - - - - - The log4net Global Context. - - - - The GlobalContext provides a location for global debugging - information to be stored. - - - The global context has a properties map and these properties can - be included in the output of log messages. The - supports selecting and outputing these properties. - - - By default the log4net:HostName property is set to the name of - the current machine. - - - - - GlobalContext.Properties["hostname"] = Environment.MachineName; - - - - Nicko Cadell - - - - Private Constructor. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - The global context properties instance - - - - - The global properties map. - - - The global properties map. - - - - The global properties map. - - - - - - The log4net Logical Thread Context. - - - - The LogicalThreadContext provides a location for specific debugging - information to be stored. - The LogicalThreadContext properties override any or - properties with the same name. - - - The Logical Thread Context has a properties map and a stack. - The properties and stack can - be included in the output of log messages. The - supports selecting and outputting these properties. - - - The Logical Thread Context provides a diagnostic context for the current call context. - This is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The Logical Thread Context is managed on a per basis. - - - Example of using the thread context properties to store a username. - - LogicalThreadContext.Properties["user"] = userName; - log.Info("This log message has a LogicalThreadContext Property called 'user'"); - - - Example of how to push a message into the context stack - - using(LogicalThreadContext.Stacks["LDC"].Push("my context message")) - { - log.Info("This log message has a LogicalThreadContext Stack message that includes 'my context message'"); - - } // at the end of the using block the message is automatically popped - - - - Nicko Cadell - - - - Private Constructor. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - The thread context properties instance - - - - - The thread context stacks instance - - - - - The thread properties map - - - The thread properties map - - - - The LogicalThreadContext properties override any - or properties with the same name. - - - - - - The thread stacks - - - stack map - - - - The logical thread stacks. - - - - - - This class is used by client applications to request logger instances. - - - - This class has static methods that are used by a client to request - a logger instance. The method is - used to retrieve a logger. - - - See the interface for more details. - - - Simple example of logging messages - - ILog log = LogManager.GetLogger("application-log"); - - log.Info("Application Start"); - log.Debug("This is a debug message"); - - if (log.IsDebugEnabled) - { - log.Debug("This is another debug message"); - } - - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - Returns the named logger if it exists. - - Returns the named logger if it exists. - - - - If the named logger exists (in the default repository) then it - returns a reference to the logger, otherwise it returns null. - - - The fully qualified logger name to look for. - The logger found, or null if no logger could be found. - - - - Returns the named logger if it exists. - - - - If the named logger exists (in the specified repository) then it - returns a reference to the logger, otherwise it returns - null. - - - The repository to lookup in. - The fully qualified logger name to look for. - - The logger found, or null if the logger doesn't exist in the specified - repository. - - - - - Returns the named logger if it exists. - - - - If the named logger exists (in the repository for the specified assembly) then it - returns a reference to the logger, otherwise it returns - null. - - - The assembly to use to lookup the repository. - The fully qualified logger name to look for. - - The logger, or null if the logger doesn't exist in the specified - assembly's repository. - - - - Get the currently defined loggers. - - Returns all the currently defined loggers in the default repository. - - - The root logger is not included in the returned array. - - All the defined loggers. - - - - Returns all the currently defined loggers in the specified repository. - - The repository to lookup in. - - The root logger is not included in the returned array. - - All the defined loggers. - - - - Returns all the currently defined loggers in the specified assembly's repository. - - The assembly to use to lookup the repository. - - The root logger is not included in the returned array. - - All the defined loggers. - - - Get or create a logger. - - Retrieves or creates a named logger. - - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The name of the logger to retrieve. - The logger with the name specified. - - - - Retrieves or creates a named logger. - - - - Retrieve a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The repository to lookup in. - The name of the logger to retrieve. - The logger with the name specified. - - - - Retrieves or creates a named logger. - - - - Retrieve a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The assembly to use to lookup the repository. - The name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Get the logger for the fully qualified name of the type specified. - - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Gets the logger for the fully qualified name of the type specified. - - The repository to lookup in. - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Gets the logger for the fully qualified name of the type specified. - - The assembly to use to lookup the repository. - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shuts down the log4net system. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in all the - default repositories. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - Shutdown a logger repository. - - Shuts down the default repository. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - default repository. - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - The repository to shutdown. - - - - Shuts down the repository specified. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository. The repository is looked up using - the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - The assembly to use to lookup the repository. - - - Reset the configuration of a repository - - Resets all values contained in this repository instance to their defaults. - - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - - - - Resets all values contained in this repository instance to their defaults. - - - - Reset all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - The repository to reset. - - - - Resets all values contained in this repository instance to their defaults. - - - - Reset all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - The assembly to use to lookup the repository to reset. - - - Get the logger repository. - - Returns the default instance. - - - - Gets the for the repository specified - by the callers assembly (). - - - The instance for the default repository. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The repository to lookup in. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The assembly to use to lookup the repository. - - - Get a logger repository. - - Returns the default instance. - - - - Gets the for the repository specified - by the callers assembly (). - - - The instance for the default repository. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The repository to lookup in. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The assembly to use to lookup the repository. - - - Create a domain - - Creates a repository with the specified repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to will return - the same repository instance. - - - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - Create a logger repository. - - Creates a repository with the specified repository type. - - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The created will be associated with the repository - specified such that a call to will return - the same repository instance. - - - - - - Creates a repository with the specified name. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name. - - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - The specified repository already exists. - - - - Creates a repository for the specified assembly and repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - - Creates a repository for the specified assembly and repository type. - - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - - Gets the list of currently defined repositories. - - - - Get an array of all the objects that have been created. - - - An array of all the known objects. - - - - Looks up the wrapper object for the logger specified. - - The logger to get the wrapper for. - The wrapper for the logger specified. - - - - Looks up the wrapper objects for the loggers specified. - - The loggers to get the wrappers for. - The wrapper objects for the loggers specified. - - - - Create the objects used by - this manager. - - The logger to wrap. - The wrapper for the logger specified. - - - - The wrapper map to use to hold the objects. - - - - - Implementation of Mapped Diagnostic Contexts. - - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - The MDC class is similar to the class except that it is - based on a map instead of a stack. It provides mapped - diagnostic contexts. A Mapped Diagnostic Context, or - MDC in short, is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The MDC is managed on a per thread basis. - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - Gets the context value identified by the parameter. - - The key to lookup in the MDC. - The string value held for the key, or a null reference if no corresponding value is found. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - If the parameter does not look up to a - previously defined context then null will be returned. - - - - - - Add an entry to the MDC - - The key to store the value under. - The value to store. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Puts a context value (the parameter) as identified - with the parameter into the current thread's - context map. - - - If a value is already defined for the - specified then the value will be replaced. If the - is specified as null then the key value mapping will be removed. - - - - - - Removes the key value mapping for the key specified. - - The key to remove. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Remove the specified entry from this thread's MDC - - - - - - Clear all entries in the MDC - - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Remove all the entries from this thread's MDC - - - - - - Implementation of Nested Diagnostic Contexts. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - A Nested Diagnostic Context, or NDC in short, is an instrument - to distinguish interleaved log output from different sources. Log - output is typically interleaved when a server handles multiple - clients near-simultaneously. - - - Interleaved log output can still be meaningful if each log entry - from different contexts had a distinctive stamp. This is where NDCs - come into play. - - - Note that NDCs are managed on a per thread basis. The NDC class - is made up of static methods that operate on the context of the - calling thread. - - - How to push a message into the context - - using(NDC.Push("my context message")) - { - ... all log calls will have 'my context message' included ... - - } // at the end of the using block the message is automatically removed - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - Clears all the contextual information held on the current thread. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Clears the stack of NDC data held on the current thread. - - - - - - Creates a clone of the stack of context information. - - A clone of the context info for this thread. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - The results of this method can be passed to the - method to allow child threads to inherit the context of their - parent thread. - - - - - - Inherits the contextual information from another thread. - - The context stack to inherit. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - This thread will use the context information from the stack - supplied. This can be used to initialize child threads with - the same contextual information as their parent threads. These - contexts will NOT be shared. Any further contexts that - are pushed onto the stack will not be visible to the other. - Call to obtain a stack to pass to - this method. - - - - - - Removes the top context from the stack. - - - The message in the context that was removed from the top - of the stack. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Remove the top context from the stack, and return - it to the caller. If the stack is empty then an - empty string (not null) is returned. - - - - - - Pushes a new context message. - - The new context message. - - An that can be used to clean up - the context stack. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Pushes a new context onto the context stack. An - is returned that can be used to clean up the context stack. This - can be easily combined with the using keyword to scope the - context. - - - Simple example of using the Push method with the using keyword. - - using(log4net.NDC.Push("NDC_Message")) - { - log.Warn("This should have an NDC message"); - } - - - - - - Removes the context information for this thread. It is - not required to call this method. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - This method is not implemented. - - - - - - Forces the stack depth to be at most . - - The maximum depth of the stack - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Forces the stack depth to be at most . - This may truncate the head of the stack. This only affects the - stack in the current thread. Also it does not prevent it from - growing, it only sets the maximum depth at the time of the - call. This can be used to return to a known context depth. - - - - - - Gets the current context depth. - - The current context depth. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - The number of context values pushed onto the context stack. - - - Used to record the current depth of the context. This can then - be restored using the method. - - - - - - - The log4net Thread Context. - - - - The ThreadContext provides a location for thread specific debugging - information to be stored. - The ThreadContext properties override any - properties with the same name. - - - The thread context has a properties map and a stack. - The properties and stack can - be included in the output of log messages. The - supports selecting and outputting these properties. - - - The Thread Context provides a diagnostic context for the current thread. - This is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The Thread Context is managed on a per thread basis. - - - Example of using the thread context properties to store a username. - - ThreadContext.Properties["user"] = userName; - log.Info("This log message has a ThreadContext Property called 'user'"); - - - Example of how to push a message into the context stack - - using(ThreadContext.Stacks["NDC"].Push("my context message")) - { - log.Info("This log message has a ThreadContext Stack message that includes 'my context message'"); - - } // at the end of the using block the message is automatically popped - - - - Nicko Cadell - - - - Private Constructor. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - The thread context properties instance - - - - - The thread context stacks instance - - - - - The thread properties map - - - The thread properties map - - - - The ThreadContext properties override any - properties with the same name. - - - - - - The thread stacks - - - stack map - - - - The thread local stacks. - - - - - diff --git a/src/packages/log4net.1.2.10/lib/2.0/log4net.dll b/src/packages/log4net.1.2.10/lib/2.0/log4net.dll deleted file mode 100644 index ffc57e1..0000000 Binary files a/src/packages/log4net.1.2.10/lib/2.0/log4net.dll and /dev/null differ diff --git a/src/packages/log4net.1.2.10/lib/2.0/log4net.xml b/src/packages/log4net.1.2.10/lib/2.0/log4net.xml deleted file mode 100644 index db9e99f..0000000 --- a/src/packages/log4net.1.2.10/lib/2.0/log4net.xml +++ /dev/null @@ -1,28655 +0,0 @@ - - - - log4net - - - - - Appender that logs to a database. - - - - appends logging events to a table within a - database. The appender can be configured to specify the connection - string by setting the property. - The connection type (provider) can be specified by setting the - property. For more information on database connection strings for - your specific database see http://www.connectionstrings.com/. - - - Records are written into the database either using a prepared - statement or a stored procedure. The property - is set to (System.Data.CommandType.Text) to specify a prepared statement - or to (System.Data.CommandType.StoredProcedure) to specify a stored - procedure. - - - The prepared statement text or the name of the stored procedure - must be set in the property. - - - The prepared statement or stored procedure can take a number - of parameters. Parameters are added using the - method. This adds a single to the - ordered list of parameters. The - type may be subclassed if required to provide database specific - functionality. The specifies - the parameter name, database type, size, and how the value should - be generated using a . - - - - An example of a SQL Server table that could be logged to: - - CREATE TABLE [dbo].[Log] ( - [ID] [int] IDENTITY (1, 1) NOT NULL , - [Date] [datetime] NOT NULL , - [Thread] [varchar] (255) NOT NULL , - [Level] [varchar] (20) NOT NULL , - [Logger] [varchar] (255) NOT NULL , - [Message] [varchar] (4000) NOT NULL - ) ON [PRIMARY] - - - - An example configuration to log to the above table: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Julian Biddle - Nicko Cadell - Gert Driesen - Lance Nehring - - - - Abstract base class implementation of that - buffers events in a fixed size buffer. - - - - This base class should be used by appenders that need to buffer a - number of events before logging them. For example the - buffers events and then submits the entire contents of the buffer to - the underlying database in one go. - - - Subclasses should override the - method to deliver the buffered events. - - The BufferingAppenderSkeleton maintains a fixed size cyclic - buffer of events. The size of the buffer is set using - the property. - - A is used to inspect - each event as it arrives in the appender. If the - triggers, then the current buffer is sent immediately - (see ). Otherwise the event - is stored in the buffer. For example, an evaluator can be used to - deliver the events immediately when an ERROR event arrives. - - - The buffering appender can be configured in a mode. - By default the appender is NOT lossy. When the buffer is full all - the buffered events are sent with . - If the property is set to true then the - buffer will not be sent when it is full, and new events arriving - in the appender will overwrite the oldest event in the buffer. - In lossy mode the buffer will only be sent when the - triggers. This can be useful behavior when you need to know about - ERROR events but not about events with a lower level, configure an - evaluator that will trigger when an ERROR event arrives, the whole - buffer will be sent which gives a history of events leading up to - the ERROR event. - - - Nicko Cadell - Gert Driesen - - - - Abstract base class implementation of . - - - - This class provides the code for common functionality, such - as support for threshold filtering and support for general filters. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface for your own strategies for printing log statements. - - - - Implementors should consider extending the - class which provides a default implementation of this interface. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Log the logging event in Appender specific way. - - The event to log - - - This method is called to log a message into this appender. - - - - - - Gets or sets the name of this appender. - - The name of the appender. - - The name uniquely identifies the appender. - - - - - Interface for appenders that support bulk logging. - - - - This interface extends the interface to - support bulk logging of objects. Appenders - should only implement this interface if they can bulk log efficiently. - - - Nicko Cadell - - - - Log the array of logging events in Appender specific way. - - The events to log - - - This method is called to log an array of events into this appender. - - - - - - Interface used to delay activate a configured object. - - - - This allows an object to defer activation of its options until all - options have been set. This is required for components which have - related options that remain ambiguous until all are set. - - - If a component implements this interface then the method - must be called by the container after its all the configured properties have been set - and before the component can be used. - - - Nicko Cadell - - - - Activate the options that were previously set with calls to properties. - - - - This allows an object to defer activation of its options until all - options have been set. This is required for components which have - related options that remain ambiguous until all are set. - - - If a component implements this interface then this method must be called - after its properties have been set before the component can be used. - - - - - - Initial buffer size - - - - - Maximum buffer size before it is recycled - - - - - Default constructor - - - Empty default constructor - - - - - Finalizes this appender by calling the implementation's - method. - - - - If this appender has not been closed then the Finalize method - will call . - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Closes the appender and release resources. - - - - Release any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - This method cannot be overridden by subclasses. This method - delegates the closing of the appender to the - method which must be overridden in the subclass. - - - - - - Performs threshold checks and invokes filters before - delegating actual logging to the subclasses specific - method. - - The event to log. - - - This method cannot be overridden by derived classes. A - derived class should override the method - which is called by this method. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - Calls and checks that - it returns true. - - - - - If all of the above steps succeed then the - will be passed to the abstract method. - - - - - - Performs threshold checks and invokes filters before - delegating actual logging to the subclasses specific - method. - - The array of events to log. - - - This method cannot be overridden by derived classes. A - derived class should override the method - which is called by this method. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - Calls and checks that - it returns true. - - - - - If all of the above steps succeed then the - will be passed to the method. - - - - - - Test if the logging event should we output by this appender - - the event to test - true if the event should be output, false if the event should be ignored - - - This method checks the logging event against the threshold level set - on this appender and also against the filters specified on this - appender. - - - The implementation of this method is as follows: - - - - - - Checks that the severity of the - is greater than or equal to the of this - appender. - - - - Checks that the chain accepts the - . - - - - - - - - - Adds a filter to the end of the filter chain. - - the filter to add to this appender - - - The Filters are organized in a linked list. - - - Setting this property causes the new filter to be pushed onto the - back of the filter chain. - - - - - - Clears the filter list for this appender. - - - - Clears the filter list for this appender. - - - - - - Checks if the message level is below this appender's threshold. - - to test against. - - - If there is no threshold set, then the return value is always true. - - - - true if the meets the - requirements of this appender. - - - - - Is called when the appender is closed. Derived classes should override - this method if resources need to be released. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Subclasses of should implement this method - to perform actual logging. - - The event to append. - - - A subclass must implement this method to perform - logging of the . - - This method will be called by - if all the conditions listed for that method are met. - - - To restrict the logging of events in the appender - override the method. - - - - - - Append a bulk array of logging events. - - the array of logging events - - - This base class implementation calls the - method for each element in the bulk array. - - - A sub class that can better process a bulk array of events should - override this method in addition to . - - - - - - Called before as a precondition. - - - - This method is called by - before the call to the abstract method. - - - This method can be overridden in a subclass to extend the checks - made before the event is passed to the method. - - - A subclass should ensure that they delegate this call to - this base class if it is overridden. - - - true if the call to should proceed. - - - - Renders the to a string. - - The event to render. - The event rendered as a string. - - - Helper method to render a to - a string. This appender must have a - set to render the to - a string. - - If there is exception data in the logging event and - the layout does not process the exception, this method - will append the exception text to the rendered string. - - - Where possible use the alternative version of this method - . - That method streams the rendering onto an existing Writer - which can give better performance if the caller already has - a open and ready for writing. - - - - - - Renders the to a string. - - The event to render. - The TextWriter to write the formatted event to - - - Helper method to render a to - a string. This appender must have a - set to render the to - a string. - - If there is exception data in the logging event and - the layout does not process the exception, this method - will append the exception text to the rendered string. - - - Use this method in preference to - where possible. If, however, the caller needs to render the event - to a string then does - provide an efficient mechanism for doing so. - - - - - - The layout of this appender. - - - See for more information. - - - - - The name of this appender. - - - See for more information. - - - - - The level threshold of this appender. - - - - There is no level threshold filtering by default. - - - See for more information. - - - - - - It is assumed and enforced that errorHandler is never null. - - - - It is assumed and enforced that errorHandler is never null. - - - See for more information. - - - - - - The first filter in the filter chain. - - - - Set to null initially. - - - See for more information. - - - - - - The last filter in the filter chain. - - - See for more information. - - - - - Flag indicating if this appender is closed. - - - See for more information. - - - - - The guard prevents an appender from repeatedly calling its own DoAppend method - - - - - StringWriter used to render events - - - - - Gets or sets the threshold of this appender. - - - The threshold of the appender. - - - - All log events with lower level than the threshold level are ignored - by the appender. - - - In configuration files this option is specified by setting the - value of the option to a level - string, such as "DEBUG", "INFO" and so on. - - - - - - Gets or sets the for this appender. - - The of the appender - - - The provides a default - implementation for the property. - - - - - - The filter chain. - - The head of the filter chain filter chain. - - - Returns the head Filter. The Filters are organized in a linked list - and so all Filters on this Appender are available through the result. - - - - - - Gets or sets the for this appender. - - The layout of the appender. - - - See for more information. - - - - - - - Gets or sets the name of this appender. - - The name of the appender. - - - The name uniquely identifies the appender. - - - - - - Tests if this appender requires a to be set. - - - - In the rather exceptional case, where the appender - implementation admits a layout but can also work without it, - then the appender should return true. - - - This default implementation always returns true. - - - - true if the appender requires a layout object, otherwise false. - - - - - The default buffer size. - - - The default size of the cyclic buffer used to store events. - This is set to 512 by default. - - - - - Initializes a new instance of the class. - - - - Protected default constructor to allow subclassing. - - - - - - Initializes a new instance of the class. - - the events passed through this appender must be - fixed by the time that they arrive in the derived class' SendBuffer method. - - - Protected constructor to allow subclassing. - - - The should be set if the subclass - expects the events delivered to be fixed even if the - is set to zero, i.e. when no buffering occurs. - - - - - - Flush the currently buffered events - - - - Flushes any events that have been buffered. - - - If the appender is buffering in mode then the contents - of the buffer will NOT be flushed to the appender. - - - - - - Flush the currently buffered events - - set to true to flush the buffer of lossy events - - - Flushes events that have been buffered. If is - false then events will only be flushed if this buffer is non-lossy mode. - - - If the appender is buffering in mode then the contents - of the buffer will only be flushed if is true. - In this case the contents of the buffer will be tested against the - and if triggering will be output. All other buffered - events will be discarded. - - - If is true then the buffer will always - be emptied by calling this method. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Close this appender instance. - - - - Close this appender instance. If this appender is marked - as not then the remaining events in - the buffer must be sent when the appender is closed. - - - - - - This method is called by the method. - - the event to log - - - Stores the in the cyclic buffer. - - - The buffer will be sent (i.e. passed to the - method) if one of the following conditions is met: - - - - The cyclic buffer is full and this appender is - marked as not lossy (see ) - - - An is set and - it is triggered for the - specified. - - - - Before the event is stored in the buffer it is fixed - (see ) to ensure that - any data referenced by the event will be valid when the buffer - is processed. - - - - - - Sends the contents of the buffer. - - The first logging event. - The buffer containing the events that need to be send. - - - The subclass must override . - - - - - - Sends the events. - - The events that need to be send. - - - The subclass must override this method to process the buffered events. - - - - - - The size of the cyclic buffer used to hold the logging events. - - - Set to by default. - - - - - The cyclic buffer used to store the logging events. - - - - - The triggering event evaluator that causes the buffer to be sent immediately. - - - The object that is used to determine if an event causes the entire - buffer to be sent immediately. This field can be null, which - indicates that event triggering is not to be done. The evaluator - can be set using the property. If this appender - has the ( property) set to - true then an must be set. - - - - - Indicates if the appender should overwrite events in the cyclic buffer - when it becomes full, or if the buffer should be flushed when the - buffer is full. - - - If this field is set to true then an must - be set. - - - - - The triggering event evaluator filters discarded events. - - - The object that is used to determine if an event that is discarded should - really be discarded or if it should be sent to the appenders. - This field can be null, which indicates that all discarded events will - be discarded. - - - - - Value indicating which fields in the event should be fixed - - - By default all fields are fixed - - - - - The events delivered to the subclass must be fixed. - - - - - Gets or sets a value that indicates whether the appender is lossy. - - - true if the appender is lossy, otherwise false. The default is false. - - - - This appender uses a buffer to store logging events before - delivering them. A triggering event causes the whole buffer - to be send to the remote sink. If the buffer overruns before - a triggering event then logging events could be lost. Set - to false to prevent logging events - from being lost. - - If is set to true then an - must be specified. - - - - - Gets or sets the size of the cyclic buffer used to hold the - logging events. - - - The size of the cyclic buffer used to hold the logging events. - - - - The option takes a positive integer - representing the maximum number of logging events to collect in - a cyclic buffer. When the is reached, - oldest events are deleted as new events are added to the - buffer. By default the size of the cyclic buffer is 512 events. - - - If the is set to a value less than - or equal to 1 then no buffering will occur. The logging event - will be delivered synchronously (depending on the - and properties). Otherwise the event will - be buffered. - - - - - - Gets or sets the that causes the - buffer to be sent immediately. - - - The that causes the buffer to be - sent immediately. - - - - The evaluator will be called for each event that is appended to this - appender. If the evaluator triggers then the current buffer will - immediately be sent (see ). - - If is set to true then an - must be specified. - - - - - Gets or sets the value of the to use. - - - The value of the to use. - - - - The evaluator will be called for each event that is discarded from this - appender. If the evaluator triggers then the current buffer will immediately - be sent (see ). - - - - - - Gets or sets a value indicating if only part of the logging event data - should be fixed. - - - true if the appender should only fix part of the logging event - data, otherwise false. The default is false. - - - - Setting this property to true will cause only part of the - event data to be fixed and serialized. This will improve performance. - - - See for more information. - - - - - - Gets or sets a the fields that will be fixed in the event - - - The event fields that will be fixed before the event is buffered - - - - The logging event needs to have certain thread specific values - captured before it can be buffered. See - for details. - - - - - - - Initializes a new instance of the class. - - - Public default constructor to initialize a new instance of this class. - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Override the parent method to close the database - - - - Closes the database command and database connection. - - - - - - Inserts the events into the database. - - The events to insert into the database. - - - Insert all the events specified in the - array into the database. - - - - - - Adds a parameter to the command. - - The parameter to add to the command. - - - Adds a parameter to the ordered list of command parameters. - - - - - - Writes the events to the database using the transaction specified. - - The transaction that the events will be executed under. - The array of events to insert into the database. - - - The transaction argument can be null if the appender has been - configured not to use transactions. See - property for more information. - - - - - - Formats the log message into database statement text. - - The event being logged. - - This method can be overridden by subclasses to provide - more control over the format of the database statement. - - - Text that can be passed to a . - - - - - Connects to the database. - - - - - Retrieves the class type of the ADO.NET provider. - - - - Gets the Type of the ADO.NET provider to use to connect to the - database. This method resolves the type specified in the - property. - - - Subclasses can override this method to return a different type - if necessary. - - - The of the ADO.NET provider - - - - Prepares the database command and initialize the parameters. - - - - - Flag to indicate if we are using a command object - - - - Set to true when the appender is to use a prepared - statement or stored procedure to insert into the database. - - - - - - The list of objects. - - - - The list of objects. - - - - - - The security context to use for privileged calls - - - - - The that will be used - to insert logging events into a database. - - - - - The database command. - - - - - Database connection string. - - - - - String type name of the type name. - - - - - The text of the command. - - - - - The command type. - - - - - Indicates whether to use transactions when writing to the database. - - - - - Indicates whether to use transactions when writing to the database. - - - - - Gets or sets the database connection string that is used to connect to - the database. - - - The database connection string used to connect to the database. - - - - The connections string is specific to the connection type. - See for more information. - - - Connection string for MS Access via ODBC: - "DSN=MS Access Database;UID=admin;PWD=;SystemDB=C:\data\System.mdw;SafeTransactions = 0;FIL=MS Access;DriverID = 25;DBQ=C:\data\train33.mdb" - - Another connection string for MS Access via ODBC: - "Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Work\cvs_root\log4net-1.2\access.mdb;UID=;PWD=;" - - Connection string for MS Access via OLE DB: - "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\cvs_root\log4net-1.2\access.mdb;User Id=;Password=;" - - - - - Gets or sets the type name of the connection - that should be created. - - - The type name of the connection. - - - - The type name of the ADO.NET provider to use. - - - The default is to use the OLE DB provider. - - - Use the OLE DB Provider. This is the default value. - System.Data.OleDb.OleDbConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Use the MS SQL Server Provider. - System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Use the ODBC Provider. - Microsoft.Data.Odbc.OdbcConnection,Microsoft.Data.Odbc,version=1.0.3300.0,publicKeyToken=b77a5c561934e089,culture=neutral - This is an optional package that you can download from - http://msdn.microsoft.com/downloads - search for ODBC .NET Data Provider. - - Use the Oracle Provider. - System.Data.OracleClient.OracleConnection, System.Data.OracleClient, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - This is an optional package that you can download from - http://msdn.microsoft.com/downloads - search for .NET Managed Provider for Oracle. - - - - - Gets or sets the command text that is used to insert logging events - into the database. - - - The command text used to insert logging events into the database. - - - - Either the text of the prepared statement or the - name of the stored procedure to execute to write into - the database. - - - The property determines if - this text is a prepared statement or a stored procedure. - - - - - - Gets or sets the command type to execute. - - - The command type to execute. - - - - This value may be either (System.Data.CommandType.Text) to specify - that the is a prepared statement to execute, - or (System.Data.CommandType.StoredProcedure) to specify that the - property is the name of a stored procedure - to execute. - - - The default value is (System.Data.CommandType.Text). - - - - - - Should transactions be used to insert logging events in the database. - - - true if transactions should be used to insert logging events in - the database, otherwise false. The default value is true. - - - - Gets or sets a value that indicates whether transactions should be used - to insert logging events in the database. - - - When set a single transaction will be used to insert the buffered events - into the database. Otherwise each event will be inserted without using - an explicit transaction. - - - - - - Gets or sets the used to call the NetSend method. - - - The used to call the NetSend method. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - Should this appender try to reconnect to the database on error. - - - true if the appender should try to reconnect to the database after an - error has occurred, otherwise false. The default value is false, - i.e. not to try to reconnect. - - - - The default behaviour is for the appender not to try to reconnect to the - database if an error occurs. Subsequent logging events are discarded. - - - To force the appender to attempt to reconnect to the database set this - property to true. - - - When the appender attempts to connect to the database there may be a - delay of up to the connection timeout specified in the connection string. - This delay will block the calling application's thread. - Until the connection can be reestablished this potential delay may occur multiple times. - - - - - - Gets or sets the underlying . - - - The underlying . - - - creates a to insert - logging events into a database. Classes deriving from - can use this property to get or set this . Use the - underlying returned from if - you require access beyond that which provides. - - - - - Parameter type used by the . - - - - This class provides the basic database parameter properties - as defined by the interface. - - This type can be subclassed to provide database specific - functionality. The two methods that are called externally are - and . - - - - - - Initializes a new instance of the class. - - - Default constructor for the AdoNetAppenderParameter class. - - - - - Prepare the specified database command object. - - The command to prepare. - - - Prepares the database command object by adding - this parameter to its collection of parameters. - - - - - - Renders the logging event and set the parameter value in the command. - - The command containing the parameter. - The event to be rendered. - - - Renders the logging event using this parameters layout - object. Sets the value of the parameter on the command object. - - - - - - The name of this parameter. - - - - - The database type for this parameter. - - - - - Flag to infer type rather than use the DbType - - - - - The precision for this parameter. - - - - - The scale for this parameter. - - - - - The size for this parameter. - - - - - The to use to render the - logging event into an object for this parameter. - - - - - Gets or sets the name of this parameter. - - - The name of this parameter. - - - - The name of this parameter. The parameter name - must match up to a named parameter to the SQL stored procedure - or prepared statement. - - - - - - Gets or sets the database type for this parameter. - - - The database type for this parameter. - - - - The database type for this parameter. This property should - be set to the database type from the - enumeration. See . - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the type from the value. - - - - - - - Gets or sets the precision for this parameter. - - - The precision for this parameter. - - - - The maximum number of digits used to represent the Value. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the precision from the value. - - - - - - - Gets or sets the scale for this parameter. - - - The scale for this parameter. - - - - The number of decimal places to which Value is resolved. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the scale from the value. - - - - - - - Gets or sets the size for this parameter. - - - The size for this parameter. - - - - The maximum size, in bytes, of the data within the column. - - - This property is optional. If not specified the ADO.NET provider - will attempt to infer the size from the value. - - - - - - - Gets or sets the to use to - render the logging event into an object for this - parameter. - - - The used to render the - logging event into an object for this parameter. - - - - The that renders the value for this - parameter. - - - The can be used to adapt - any into a - for use in the property. - - - - - - Appends logging events to the terminal using ANSI color escape sequences. - - - - AnsiColorTerminalAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. It also allows the color of a specific level of message to be set. - - - This appender expects the terminal to understand the VT100 control set - in order to interpret the color codes. If the terminal or console does not - understand the control codes the behavior is not defined. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes each message to the System.Console.Out or - System.Console.Error that is set at the time the event is appended. - Therefore it is possible to programmatically redirect the output of this appender - (for example NUnit does this to capture program output). While this is the desired - behavior of this appender it may have security implications in your application. - - - When configuring the ANSI colored terminal appender, a mapping should be - specified to map a logging level to a color. For example: - - - - - - - - - - - - - - - The Level is the standard log4net logging level and ForeColor and BackColor can be any - of the following values: - - Blue - Green - Red - White - Yellow - Purple - Cyan - - These color values cannot be combined together to make new colors. - - - The attributes can be any combination of the following: - - Brightforeground is brighter - Dimforeground is dimmer - Underscoremessage is underlined - Blinkforeground is blinking (does not work on all terminals) - Reverseforeground and background are reversed - Hiddenoutput is hidden - Strikethroughmessage has a line through it - - While any of these attributes may be combined together not all combinations - work well together, for example setting both Bright and Dim attributes makes - no sense. - - - Patrick Wagstrom - Nicko Cadell - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Ansi code to reset terminal - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Add a mapping of level to color - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the foreground and background colours - for a level. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to color mappings set on this appender. - - - - - - Flag to write output to the error stream rather than the standard output stream - - - - - Mapping from level object to color value - - - - - Target is the value of the console output stream. - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - The enum of possible display attributes - - - - The following flags can be combined together to - form the ANSI color attributes. - - - - - - - text is bright - - - - - text is dim - - - - - text is underlined - - - - - text is blinking - - - Not all terminals support this attribute - - - - - text and background colors are reversed - - - - - text is hidden - - - - - text is displayed with a strikethrough - - - - - The enum of possible foreground or background color values for - use with the color mapping method - - - - The output can be in one for the following ANSI colors. - - - - - - - color is black - - - - - color is red - - - - - color is green - - - - - color is yellow - - - - - color is blue - - - - - color is magenta - - - - - color is cyan - - - - - color is white - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and the color it should be displayed in. - - - - - - An entry in the - - - - This is an abstract base class for types that are stored in the - object. - - - Nicko Cadell - - - - Default protected constructor - - - - Default protected constructor - - - - - - Initialize any options defined on this entry - - - - Should be overridden by any classes that need to initialise based on their options - - - - - - The level that is the key for this mapping - - - The that is the key for this mapping - - - - Get or set the that is the key for this - mapping subclass. - - - - - - Initialize the options for the object - - - - Combine the and together - and append the attributes. - - - - - - The mapped foreground color for the specified level - - - - Required property. - The mapped foreground color for the specified level - - - - - - The mapped background color for the specified level - - - - Required property. - The mapped background color for the specified level - - - - - - The color attributes for the specified level - - - - Required property. - The color attributes for the specified level - - - - - - The combined , and - suitable for setting the ansi terminal color. - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a AppenderCollection instance. - - list to create a readonly wrapper arround - - An AppenderCollection wrapper that is read-only. - - - - - An empty readonly static AppenderCollection - - - - - Initializes a new instance of the AppenderCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the AppenderCollection class - that has the specified initial capacity. - - - The number of elements that the new AppenderCollection is initially capable of storing. - - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified AppenderCollection. - - The AppenderCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the AppenderCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - - Copies the entire AppenderCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire AppenderCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the AppenderCollection. - - The to be added to the end of the AppenderCollection. - The index at which the value has been added. - - - - Removes all elements from the AppenderCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the AppenderCollection. - - The to check for. - true if is found in the AppenderCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the AppenderCollection. - - The to locate in the AppenderCollection. - - The zero-based index of the first occurrence of - in the entire AppenderCollection, if found; otherwise, -1. - - - - - Inserts an element into the AppenderCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the AppenderCollection. - - The to remove from the AppenderCollection. - - The specified was not found in the AppenderCollection. - - - - - Removes the element at the specified index of the AppenderCollection. - - The zero-based index of the element to remove. - - is less than zero - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the AppenderCollection. - - An for the entire AppenderCollection. - - - - Adds the elements of another AppenderCollection to the current AppenderCollection. - - The AppenderCollection whose elements should be added to the end of the current AppenderCollection. - The new of the AppenderCollection. - - - - Adds the elements of a array to the current AppenderCollection. - - The array whose elements should be added to the end of the AppenderCollection. - The new of the AppenderCollection. - - - - Adds the elements of a collection to the current AppenderCollection. - - The collection whose elements should be added to the end of the AppenderCollection. - The new of the AppenderCollection. - - - - Sets the capacity to the actual number of elements. - - - - - Return the collection elements as an array - - the array - - - - is less than zero - -or- - is equal to or greater than . - - - - - is less than zero - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the AppenderCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - The zero-based index of the element to get or set. - - is less than zero - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false - - - - Gets or sets the number of elements the AppenderCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - - A value - - - - - Supports simple iteration over a . - - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - - - - - Appends log events to the ASP.NET system. - - - - - Diagnostic information and tracing messages that you specify are appended to the output - of the page that is sent to the requesting browser. Optionally, you can view this information - from a separate trace viewer (Trace.axd) that displays trace information for every page in a - given application. - - - Trace statements are processed and displayed only when tracing is enabled. You can control - whether tracing is displayed to a page, to the trace viewer, or both. - - - The logging event is passed to the or - method depending on the level of the logging event. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Write the logging event to the ASP.NET trace - - the event to log - - - Write the logging event to the ASP.NET trace - HttpContext.Current.Trace - (). - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Buffers events and then forwards them to attached appenders. - - - - The events are buffered in this appender until conditions are - met to allow the appender to deliver the events to the attached - appenders. See for the - conditions that cause the buffer to be sent. - - The forwarding appender can be used to specify different - thresholds and filters for the same appender at different locations - within the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Interface for attaching appenders to objects. - - - - Interface for attaching, removing and retrieving appenders. - - - Nicko Cadell - Gert Driesen - - - - Attaches an appender. - - The appender to add. - - - Add the specified appender. The implementation may - choose to allow or deny duplicate appenders. - - - - - - Gets an attached appender with the specified name. - - The name of the appender to get. - - The appender with the name specified, or null if no appender with the - specified name is found. - - - - Returns an attached appender with the specified. - If no appender with the specified name is found null will be - returned. - - - - - - Removes all attached appenders. - - - - Removes and closes all attached appenders - - - - - - Removes the specified appender from the list of attached appenders. - - The appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Gets all attached appenders. - - - A collection of attached appenders. - - - - Gets a collection of attached appenders. - If there are no attached appenders the - implementation should return an empty - collection rather than null. - - - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Send the events. - - The events that need to be send. - - - Forwards the events to the attached appenders. - - - - - - Adds an to the list of appenders of this - instance. - - The to add to this appender. - - - If the specified is already in the list of - appenders, then it won't be added again. - - - - - - Looks for the appender with the specified name. - - The name of the appender to lookup. - - The appender with the specified name, or null. - - - - Get the named appender attached to this buffering appender. - - - - - - Removes all previously added appenders from this appender. - - - - This is useful when re-reading configuration information. - - - - - - Removes the specified appender from the list of appenders. - - The appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Implementation of the interface - - - - - Gets the appenders contained in this appender as an - . - - - If no appenders can be found, then an - is returned. - - - A collection of the appenders in this appender. - - - - - Appends logging events to the console. - - - - ColoredConsoleAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. It also allows the color of a specific type of message to be set. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes directly to the application's attached console - not to the System.Console.Out or System.Console.Error TextWriter. - The System.Console.Out and System.Console.Error streams can be - programmatically redirected (for example NUnit does this to capture program output). - This appender will ignore these redirections because it needs to use Win32 - API calls to colorize the output. To respect these redirections the - must be used. - - - When configuring the colored console appender, mapping should be - specified to map a logging level to a color. For example: - - - - - - - - - - - - - - The Level is the standard log4net logging level and ForeColor and BackColor can be any - combination of the following values: - - Blue - Green - Red - White - Yellow - Purple - Cyan - HighIntensity - - - - Rick Hobbs - Nicko Cadell - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - flag set to true to write to the console error stream - - When is set to true, output is written to - the standard error output stream. Otherwise, output is written to the standard - output stream. - - - - - Add a mapping of level to color - done by the config file - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the foreground and background colors - for a level. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to color mappings set on this appender. - - - - - - Flag to write output to the error stream rather than the standard output stream - - - - - Mapping from level object to color value - - - - - The console output stream writer to write to - - - - This writer is not thread safe. - - - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - The enum of possible color values for use with the color mapping method - - - - The following flags can be combined together to - form the colors. - - - - - - - color is blue - - - - - color is green - - - - - color is red - - - - - color is white - - - - - color is yellow - - - - - color is purple - - - - - color is cyan - - - - - color is intensified - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and the color it should be displayed in. - - - - - - Initialize the options for the object - - - - Combine the and together. - - - - - - The mapped foreground color for the specified level - - - - Required property. - The mapped foreground color for the specified level. - - - - - - The mapped background color for the specified level - - - - Required property. - The mapped background color for the specified level. - - - - - - The combined and suitable for - setting the console color. - - - - - Appends logging events to the console. - - - - ConsoleAppender appends log events to the standard output stream - or the error output stream using a layout specified by the - user. - - - By default, all output is written to the console's standard output stream. - The property can be set to direct the output to the - error stream. - - - NOTE: This appender writes each message to the System.Console.Out or - System.Console.Error that is set at the time the event is appended. - Therefore it is possible to programmatically redirect the output of this appender - (for example NUnit does this to capture program output). While this is the desired - behavior of this appender it may have security implications in your application. - - - Nicko Cadell - Gert Driesen - - - - The to use when writing to the Console - standard output stream. - - - - The to use when writing to the Console - standard output stream. - - - - - - The to use when writing to the Console - standard error output stream. - - - - The to use when writing to the Console - standard error output stream. - - - - - - Initializes a new instance of the class. - - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - - The instance of the class is set up to write - to the standard output stream. - - - - - Initializes a new instance of the class - with the specified layout. - - the layout to use for this appender - flag set to true to write to the console error stream - - When is set to true, output is written to - the standard error output stream. Otherwise, output is written to the standard - output stream. - - - - - This method is called by the method. - - The event to log. - - - Writes the event to the console. - - - The format of the output will depend on the appender's layout. - - - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - Target is the value of the console output stream. - This is either "Console.Out" or "Console.Error". - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appends log events to the system. - - - - The application configuration file can be used to control what listeners - are actually used. See the MSDN documentation for the - class for details on configuring the - debug system. - - - Events are written using the - method. The event's logger name is passed as the value for the category name to the Write method. - - - Nicko Cadell - - - - Initializes a new instance of the . - - - - Default constructor. - - - - - - Initializes a new instance of the - with a specified layout. - - The layout to use with this appender. - - - Obsolete constructor. - - - - - - Writes the logging event to the system. - - The event to log. - - - Writes the logging event to the system. - If is true then the - is called. - - - - - - Immediate flush means that the underlying writer or output stream - will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logs events are not actually written to persistent media if and - when the application crashes. - - - The default value is true. - - - - - Gets or sets a value that indicates whether the appender will - flush at the end of each write. - - - The default behavior is to flush at the end of each - write. If the option is set tofalse, then the underlying - stream can defer writing to physical medium to a later time. - - - Avoiding the flush operation at the end of each append results - in a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Writes events to the system event log. - - - - The EventID of the event log entry can be - set using the EventLogEventID property () - on the . - - - There is a limit of 32K characters for an event log message - - - When configuring the EventLogAppender a mapping can be - specified to map a logging level to an event log entry type. For example: - - - <mapping> - <level value="ERROR" /> - <eventLogEntryType value="Error" /> - </mapping> - <mapping> - <level value="DEBUG" /> - <eventLogEntryType value="Information" /> - </mapping> - - - The Level is the standard log4net logging level and eventLogEntryType can be any value - from the enum, i.e.: - - Erroran error event - Warninga warning event - Informationan informational event - - - - Aspi Havewala - Douglas de la Torre - Nicko Cadell - Gert Driesen - Thomas Voss - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initializes a new instance of the class - with the specified . - - The to use with this appender. - - - Obsolete constructor. - - - - - - Add a mapping of level to - done by the config file - - The mapping to add - - - Add a mapping to this appender. - Each mapping defines the event log entry type for a level. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Create an event log source - - - Uses different API calls under NET_2_0 - - - - - This method is called by the - method. - - the event to log - - Writes the event to the system event log using the - . - - If the event has an EventID property (see ) - set then this integer will be used as the event log event id. - - - There is a limit of 32K characters for an event log message - - - - - - Get the equivalent for a - - the Level to convert to an EventLogEntryType - The equivalent for a - - Because there are fewer applicable - values to use in logging levels than there are in the - this is a one way mapping. There is - a loss of information during the conversion. - - - - - The log name is the section in the event logs where the messages - are stored. - - - - - Name of the application to use when logging. This appears in the - application column of the event log named by . - - - - - The name of the machine which holds the event log. This is - currently only allowed to be '.' i.e. the current machine. - - - - - Mapping from level object to EventLogEntryType - - - - - The security context to use for privileged calls - - - - - The name of the log where messages will be stored. - - - The string name of the log where messages will be stored. - - - This is the name of the log as it appears in the Event Viewer - tree. The default value is to log into the Application - log, this is where most applications write their events. However - if you need a separate log for your application (or applications) - then you should set the appropriately. - This should not be used to distinguish your event log messages - from those of other applications, the - property should be used to distinguish events. This property should be - used to group together events into a single log. - - - - - - Property used to set the Application name. This appears in the - event logs when logging. - - - The string used to distinguish events from different sources. - - - Sets the event log source property. - - - - - This property is used to return the name of the computer to use - when accessing the event logs. Currently, this is the current - computer, denoted by a dot "." - - - The string name of the machine holding the event log that - will be logged into. - - - This property cannot be changed. It is currently set to '.' - i.e. the local machine. This may be changed in future. - - - - - Gets or sets the used to write to the EventLog. - - - The used to write to the EventLog. - - - - The system security context used to write to the EventLog. - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - A class to act as a mapping between the level that a logging call is made at and - the color it should be displayed as. - - - - Defines the mapping between a level and its event log entry type. - - - - - - The for this entry - - - - Required property. - The for this entry - - - - - - Appends logging events to a file. - - - - Logging events are sent to the file specified by - the property. - - - The file can be opened in either append or overwrite mode - by specifying the property. - If the file path is relative it is taken as relative from - the application base directory. The file encoding can be - specified by setting the property. - - - The layout's and - values will be written each time the file is opened and closed - respectively. If the property is - then the file may contain multiple copies of the header and footer. - - - This appender will first try to open the file for writing when - is called. This will typically be during configuration. - If the file cannot be opened for writing the appender will attempt - to open the file again each time a message is logged to the appender. - If the file cannot be opened for writing when a message is logged then - the message will be discarded by this appender. - - - The supports pluggable file locking models via - the property. - The default behavior, implemented by - is to obtain an exclusive write lock on the file until this appender is closed. - The alternative model, , only holds a - write lock while the appender is writing a logging event. - - - Nicko Cadell - Gert Driesen - Rodrigo B. de Oliveira - Douglas de la Torre - Niall Daley - - - - Sends logging events to a . - - - - An Appender that writes to a . - - - This appender may be used stand alone if initialized with an appropriate - writer, however it is typically used as a base class for an appender that - can open a to write to. - - - Nicko Cadell - Gert Driesen - Douglas de la Torre - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initializes a new instance of the class and - sets the output destination to a new initialized - with the specified . - - The layout to use with this appender. - The to output to. - - - Obsolete constructor. - - - - - - Initializes a new instance of the class and sets - the output destination to the specified . - - The layout to use with this appender - The to output to - - The must have been previously opened. - - - - Obsolete constructor. - - - - - - This method determines if there is a sense in attempting to append. - - - - This method checked if an output target has been set and if a - layout has been set. - - - false if any of the preconditions fail. - - - - This method is called by the - method. - - The event to log. - - - Writes a log statement to the output stream if the output stream exists - and is writable. - - - The format of the output will depend on the appender's layout. - - - - - - This method is called by the - method. - - The array of events to log. - - - This method writes all the bulk logged events to the output writer - before flushing the stream. - - - - - - Close this appender instance. The underlying stream or writer is also closed. - - - Closed appenders cannot be reused. - - - - - Writes the footer and closes the underlying . - - - - Writes the footer and closes the underlying . - - - - - - Closes the underlying . - - - - Closes the underlying . - - - - - - Clears internal references to the underlying - and other variables. - - - - Subclasses can override this method for an alternate closing behavior. - - - - - - Writes a footer as produced by the embedded layout's property. - - - - Writes a footer as produced by the embedded layout's property. - - - - - - Writes a header produced by the embedded layout's property. - - - - Writes a header produced by the embedded layout's property. - - - - - - Called to allow a subclass to lazily initialize the writer - - - - This method is called when an event is logged and the or - have not been set. This allows a subclass to - attempt to initialize the writer multiple times. - - - - - - This is the where logging events - will be written to. - - - - - Immediate flush means that the underlying - or output stream will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logging events are not actually persisted if and when the application - crashes. - - - The default value is true. - - - - - - Gets or set whether the appender will flush at the end - of each append operation. - - - - The default behavior is to flush at the end of each - append operation. - - - If this option is set to false, then the underlying - stream can defer persisting the logging event to a later - time. - - - - Avoiding the flush operation at the end of each append results in - a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - Sets the where the log output will go. - - - - The specified must be open and writable. - - - The will be closed when the appender - instance is closed. - - - Note: Logging to an unopened will fail. - - - - - - Gets or set the and the underlying - , if any, for this appender. - - - The for this appender. - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Gets or sets the where logging events - will be written to. - - - The where logging events are written. - - - - This is the where logging events - will be written to. - - - - - - Default constructor - - - - Default constructor - - - - - - Construct a new appender using the layout, file and append mode. - - the layout to use with this appender - the full path to the file to write to - flag to indicate if the file should be appended to - - - Obsolete constructor. - - - - - - Construct a new appender using the layout and file specified. - The file will be appended to. - - the layout to use with this appender - the full path to the file to write to - - - Obsolete constructor. - - - - - - Activate the options on the file appender. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - This will cause the file to be opened. - - - - - - Closes any previously opened file and calls the parent's . - - - - Resets the filename and the file stream. - - - - - - Called to initialize the file writer - - - - Will be called for each logged message until the file is - successfully opened. - - - - - - This method is called by the - method. - - The event to log. - - - Writes a log statement to the output stream if the output stream exists - and is writable. - - - The format of the output will depend on the appender's layout. - - - - - - This method is called by the - method. - - The array of events to log. - - - Acquires the output file locks once before writing all the events to - the stream. - - - - - - Writes a footer as produced by the embedded layout's property. - - - - Writes a footer as produced by the embedded layout's property. - - - - - - Writes a header produced by the embedded layout's property. - - - - Writes a header produced by the embedded layout's property. - - - - - - Closes the underlying . - - - - Closes the underlying . - - - - - - Closes the previously opened file. - - - - Writes the to the file and then - closes the file. - - - - - - Sets and opens the file where the log output will go. The specified file must be writable. - - The path to the log file. Must be a fully qualified path. - If true will append to fileName. Otherwise will truncate fileName - - - Calls but guarantees not to throw an exception. - Errors are passed to the . - - - - - - Sets and opens the file where the log output will go. The specified file must be writable. - - The path to the log file. Must be a fully qualified path. - If true will append to fileName. Otherwise will truncate fileName - - - If there was already an opened file, then the previous file - is closed first. - - - This method will ensure that the directory structure - for the specified exists. - - - - - - Sets the quiet writer used for file output - - the file stream that has been opened for writing - - - This implementation of creates a - over the and passes it to the - method. - - - This method can be overridden by sub classes that want to wrap the - in some way, for example to encrypt the output - data using a System.Security.Cryptography.CryptoStream. - - - - - - Sets the quiet writer being used. - - the writer over the file stream that has been opened for writing - - - This method can be overridden by sub classes that want to - wrap the in some way. - - - - - - Convert a path into a fully qualified path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - - - - Flag to indicate if we should append to the file - or overwrite the file. The default is to append. - - - - - The name of the log file. - - - - - The encoding to use for the file stream. - - - - - The security context to use for privileged calls - - - - - The stream to log to. Has added locking semantics - - - - - The locking model to use - - - - - Gets or sets the path to the file that logging will be written to. - - - The path to the file that logging will be written to. - - - - If the path is relative it is taken as relative from - the application base directory. - - - - - - Gets or sets a flag that indicates whether the file should be - appended to or overwritten. - - - Indicates whether the file should be appended to or overwritten. - - - - If the value is set to false then the file will be overwritten, if - it is set to true then the file will be appended to. - - The default value is true. - - - - - Gets or sets used to write to the file. - - - The used to write to the file. - - - - The default encoding set is - which is the encoding for the system's current ANSI code page. - - - - - - Gets or sets the used to write to the file. - - - The used to write to the file. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - Gets or sets the used to handle locking of the file. - - - The used to lock the file. - - - - Gets or sets the used to handle locking of the file. - - - There are two built in locking models, and . - The former locks the file from the start of logging to the end and the - later lock only for the minimal amount of time when logging each message. - - - The default locking model is the . - - - - - - Write only that uses the - to manage access to an underlying resource. - - - - - True asynchronous writes are not supported, the implementation forces a synchronous write. - - - - - Exception base type for log4net. - - - - This type extends . It - does not add any new functionality but does differentiate the - type of exception being thrown. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - A message to include with the exception. - - - Initializes a new instance of the class with - the specified message. - - - - - - Constructor - - A message to include with the exception. - A nested exception to include. - - - Initializes a new instance of the class - with the specified message and inner exception. - - - - - - Serialization constructor - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Locking model base class - - - - Base class for the locking models available to the derived loggers. - - - - - - Open the output file - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Acquire the lock on the file in preparation for writing to it. - Return a stream pointing to the file. - must be called to release the lock on the output file. - - - - - - Release the lock on the file - - - - Release the lock on the file. No further writes will be made to the - stream until is called again. - - - - - - Gets or sets the for this LockingModel - - - The for this LockingModel - - - - The file appender this locking model is attached to and working on - behalf of. - - - The file appender is used to locate the security context and the error handler to use. - - - The value of this property will be set before is - called. - - - - - - Hold an exclusive lock on the output file - - - - Open the file once for writing and hold it open until is called. - Maintains an exclusive lock on the file during this time. - - - - - - Open the file specified and prepare for logging. - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Does nothing. The lock is already taken - - - - - - Release the lock on the file - - - - Does nothing. The lock will be released when the file is closed. - - - - - - Acquires the file lock for each write - - - - Opens the file once for each / cycle, - thus holding the lock for the minimal amount of time. This method of locking - is considerably slower than but allows - other processes to move/delete the log file whilst logging continues. - - - - - - Prepares to open the file when the first message is logged. - - The filename to use - Whether to append to the file, or overwrite - The encoding to use - - - Open the file specified and prepare for logging. - No writes will be made until is called. - Must be called before any calls to , - and . - - - - - - Close the file - - - - Close the file. No further writes will be made. - - - - - - Acquire the lock on the file - - A stream that is ready to be written to. - - - Acquire the lock on the file in preparation for writing to it. - Return a stream pointing to the file. - must be called to release the lock on the output file. - - - - - - Release the lock on the file - - - - Release the lock on the file. No further writes will be made to the - stream until is called again. - - - - - - This appender forwards logging events to attached appenders. - - - - The forwarding appender can be used to specify different thresholds - and filters for the same appender at different locations within the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Closes the appender and releases resources. - - - - Releases any resources allocated within the appender such as file handles, - network connections, etc. - - - It is a programming error to append to a closed appender. - - - - - - Forward the logging event to the attached appenders - - The event to log. - - - Delivers the logging event to all the attached appenders. - - - - - - Forward the logging events to the attached appenders - - The array of events to log. - - - Delivers the logging events to all the attached appenders. - - - - - - Adds an to the list of appenders of this - instance. - - The to add to this appender. - - - If the specified is already in the list of - appenders, then it won't be added again. - - - - - - Looks for the appender with the specified name. - - The name of the appender to lookup. - - The appender with the specified name, or null. - - - - Get the named appender attached to this appender. - - - - - - Removes all previously added appenders from this appender. - - - - This is useful when re-reading configuration information. - - - - - - Removes the specified appender from the list of appenders. - - The appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - Implementation of the interface - - - - - Gets the appenders contained in this appender as an - . - - - If no appenders can be found, then an - is returned. - - - A collection of the appenders in this appender. - - - - - Logs events to a local syslog service. - - - - This appender uses the POSIX libc library functions openlog, syslog, and closelog. - If these functions are not available on the local system then this appender will not work! - - - The functions openlog, syslog, and closelog are specified in SUSv2 and - POSIX 1003.1-2001 standards. These are used to log messages to the local syslog service. - - - This appender talks to a local syslog service. If you need to log to a remote syslog - daemon and you cannot configure your local syslog service to do this you may be - able to use the to log via UDP. - - - Syslog messages must have a facility and and a severity. The severity - is derived from the Level of the logging event. - The facility must be chosen from the set of defined syslog - values. The facilities list is predefined - and cannot be extended. - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - Rob Lyon - Nicko Cadell - - - - Initializes a new instance of the class. - - - This instance of the class is set up to write - to a local syslog service. - - - - - Add a mapping of level to severity - - The mapping to add - - - Adds a to this appender. - - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to a remote syslog daemon. - - - The format of the output will depend on the appender's layout. - - - - - - Close the syslog when the appender is closed - - - - Close the syslog when the appender is closed - - - - - - Translates a log4net level to a syslog severity. - - A log4net level. - A syslog severity. - - - Translates a log4net level to a syslog severity. - - - - - - Generate a syslog priority. - - The syslog facility. - The syslog severity. - A syslog priority. - - - - The facility. The default facility is . - - - - - The message identity - - - - - Marshaled handle to the identity string. We have to hold on to the - string as the openlog and syslog APIs just hold the - pointer to the ident and dereference it for each log message. - - - - - Mapping from level object to syslog severity - - - - - Open connection to system logger. - - - - - Generate a log message. - - - - The libc syslog method takes a format string and a variable argument list similar - to the classic printf function. As this type of vararg list is not supported - by C# we need to specify the arguments explicitly. Here we have specified the - format string with a single message argument. The caller must set the format - string to "%s". - - - - - - Close descriptor used to write to system logger. - - - - - Message identity - - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - - - - Syslog facility - - - Set to one of the values. The list of - facilities is predefined and cannot be extended. The default value - is . - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - syslog severities - - - - The log4net Level maps to a syslog severity using the - method and the - class. The severity is set on . - - - - - - system is unusable - - - - - action must be taken immediately - - - - - critical conditions - - - - - error conditions - - - - - warning conditions - - - - - normal but significant condition - - - - - informational - - - - - debug-level messages - - - - - syslog facilities - - - - The syslog facility defines which subsystem the logging comes from. - This is set on the property. - - - - - - kernel messages - - - - - random user-level messages - - - - - mail system - - - - - system daemons - - - - - security/authorization messages - - - - - messages generated internally by syslogd - - - - - line printer subsystem - - - - - network news subsystem - - - - - UUCP subsystem - - - - - clock (cron/at) daemon - - - - - security/authorization messages (private) - - - - - ftp daemon - - - - - NTP subsystem - - - - - log audit - - - - - log alert - - - - - clock daemon - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - - - The mapped syslog severity for the specified level - - - - Required property. - The mapped syslog severity for the specified level - - - - - - Stores logging events in an array. - - - - The memory appender stores all the logging events - that are appended in an in-memory array. - - - Use the method to get - the current list of events that have been appended. - - - Use the method to clear the - current list of events. - - - Julian Biddle - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Gets the events that have been logged. - - The events that have been logged - - - Gets the events that have been logged. - - - - - - This method is called by the method. - - the event to log - - Stores the in the events list. - - - - - Clear the list of events - - - Clear the list of events - - - - - The list of events that have been appended. - - - - - Value indicating which fields in the event should be fixed - - - By default all fields are fixed - - - - - Gets or sets a value indicating whether only part of the logging event - data should be fixed. - - - true if the appender should only fix part of the logging event - data, otherwise false. The default is false. - - - - Setting this property to true will cause only part of the event - data to be fixed and stored in the appender, hereby improving performance. - - - See for more information. - - - - - - Gets or sets the fields that will be fixed in the event - - - - The logging event needs to have certain thread specific values - captured before it can be buffered. See - for details. - - - - - - Logs entries by sending network messages using the - native function. - - - - You can send messages only to names that are active - on the network. If you send the message to a user name, - that user must be logged on and running the Messenger - service to receive the message. - - - The receiver will get a top most window displaying the - messages one at a time, therefore this appender should - not be used to deliver a high volume of messages. - - - The following table lists some possible uses for this appender : - - - - - Action - Property Value(s) - - - Send a message to a user account on the local machine - - - = <name of the local machine> - - - = <user name> - - - - - Send a message to a user account on a remote machine - - - = <name of the remote machine> - - - = <user name> - - - - - Send a message to a domain user account - - - = <name of a domain controller | uninitialized> - - - = <user name> - - - - - Send a message to all the names in a workgroup or domain - - - = <workgroup name | domain name>* - - - - - Send a message from the local machine to a remote machine - - - = <name of the local machine | uninitialized> - - - = <name of the remote machine> - - - - - - - Note : security restrictions apply for sending - network messages, see - for more information. - - - - - An example configuration section to log information - using this appender from the local machine, named - LOCAL_PC, to machine OPERATOR_PC : - - - - - - - - - - Nicko Cadell - Gert Driesen - - - - The DNS or NetBIOS name of the server on which the function is to execute. - - - - - The sender of the network message. - - - - - The message alias to which the message should be sent. - - - - - The security context to use for privileged calls - - - - - Initializes the appender. - - - The default constructor initializes all fields to their default values. - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The appender will be ignored if no was specified. - - - The required property was not specified. - - - - This method is called by the method. - - The event to log. - - - Sends the event using a network message. - - - - - - Sends a buffer of information to a registered message alias. - - The DNS or NetBIOS name of the server on which the function is to execute. - The message alias to which the message buffer should be sent - The originator of the message. - The message text. - The length, in bytes, of the message text. - - - The following restrictions apply for sending network messages: - - - - - Platform - Requirements - - - Windows NT - - - No special group membership is required to send a network message. - - - Admin, Accounts, Print, or Server Operator group membership is required to - successfully send a network message on a remote server. - - - - - Windows 2000 or later - - - If you send a message on a domain controller that is running Active Directory, - access is allowed or denied based on the access control list (ACL) for the securable - object. The default ACL permits only Domain Admins and Account Operators to send a network message. - - - On a member server or workstation, only Administrators and Server Operators can send a network message. - - - - - - - For more information see Security Requirements for the Network Management Functions. - - - - - If the function succeeds, the return value is zero. - - - - - - Gets or sets the sender of the message. - - - The sender of the message. - - - If this property is not specified, the message is sent from the local computer. - - - - - Gets or sets the message alias to which the message should be sent. - - - The recipient of the message. - - - This property should always be specified in order to send a message. - - - - - Gets or sets the DNS or NetBIOS name of the remote server on which the function is to execute. - - - DNS or NetBIOS name of the remote server on which the function is to execute. - - - - For Windows NT 4.0 and earlier, the string should begin with \\. - - - If this property is not specified, the local computer is used. - - - - - - Gets or sets the used to call the NetSend method. - - - The used to call the NetSend method. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appends log events to the OutputDebugString system. - - - - OutputDebugStringAppender appends log events to the - OutputDebugString system. - - - The string is passed to the native OutputDebugString - function. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Write the logging event to the output debug string API - - the event to log - - - Write the logging event to the output debug string API - - - - - - Stub for OutputDebugString native method - - the string to output - - - Stub for OutputDebugString native method - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Logs events to a remote syslog daemon. - - - - The BSD syslog protocol is used to remotely log to - a syslog daemon. The syslogd listens for for messages - on UDP port 514. - - - The syslog UDP protocol is not authenticated. Most syslog daemons - do not accept remote log messages because of the security implications. - You may be able to use the LocalSyslogAppender to talk to a local - syslog service. - - - There is an RFC 3164 that claims to document the BSD Syslog Protocol. - This RFC can be seen here: http://www.faqs.org/rfcs/rfc3164.html. - This appender generates what the RFC calls an "Original Device Message", - i.e. does not include the TIMESTAMP or HOSTNAME fields. By observation - this format of message will be accepted by all current syslog daemon - implementations. The daemon will attach the current time and the source - hostname or IP address to any messages received. - - - Syslog messages must have a facility and and a severity. The severity - is derived from the Level of the logging event. - The facility must be chosen from the set of defined syslog - values. The facilities list is predefined - and cannot be extended. - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - Rob Lyon - Nicko Cadell - - - - Sends logging events as connectionless UDP datagrams to a remote host or a - multicast group using an . - - - - UDP guarantees neither that messages arrive, nor that they arrive in the correct order. - - - To view the logging results, a custom application can be developed that listens for logging - events. - - - When decoding events send via this appender remember to use the same encoding - to decode the events as was used to send the events. See the - property to specify the encoding to use. - - - - This example shows how to log receive logging events that are sent - on IP address 244.0.0.1 and port 8080 to the console. The event is - encoded in the packet as a unicode string and it is decoded as such. - - IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Any, 0); - UdpClient udpClient; - byte[] buffer; - string loggingEvent; - - try - { - udpClient = new UdpClient(8080); - - while(true) - { - buffer = udpClient.Receive(ref remoteEndPoint); - loggingEvent = System.Text.Encoding.Unicode.GetString(buffer); - Console.WriteLine(loggingEvent); - } - } - catch(Exception e) - { - Console.WriteLine(e.ToString()); - } - - - Dim remoteEndPoint as IPEndPoint - Dim udpClient as UdpClient - Dim buffer as Byte() - Dim loggingEvent as String - - Try - remoteEndPoint = new IPEndPoint(IPAddress.Any, 0) - udpClient = new UdpClient(8080) - - While True - buffer = udpClient.Receive(ByRef remoteEndPoint) - loggingEvent = System.Text.Encoding.Unicode.GetString(buffer) - Console.WriteLine(loggingEvent) - Wend - Catch e As Exception - Console.WriteLine(e.ToString()) - End Try - - - An example configuration section to log information using this appender to the - IP 224.0.0.1 on port 8080: - - - - - - - - - - Gert Driesen - Nicko Cadell - - - - Initializes a new instance of the class. - - - The default constructor initializes all fields to their default values. - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The appender will be ignored if no was specified or - an invalid remote or local TCP port number was specified. - - - The required property was not specified. - The TCP port number assigned to or is less than or greater than . - - - - This method is called by the method. - - The event to log. - - - Sends the event using an UDP datagram. - - - Exceptions are passed to the . - - - - - - Closes the UDP connection and releases all resources associated with - this instance. - - - - Disables the underlying and releases all managed - and unmanaged resources associated with the . - - - - - - Initializes the underlying connection. - - - - The underlying is initialized and binds to the - port number from which you intend to communicate. - - - Exceptions are passed to the . - - - - - - The IP address of the remote host or multicast group to which - the logging event will be sent. - - - - - The TCP port number of the remote host or multicast group to - which the logging event will be sent. - - - - - The cached remote endpoint to which the logging events will be sent. - - - - - The TCP port number from which the will communicate. - - - - - The instance that will be used for sending the - logging events. - - - - - The encoding to use for the packet. - - - - - Gets or sets the IP address of the remote host or multicast group to which - the underlying should sent the logging event. - - - The IP address of the remote host or multicast group to which the logging event - will be sent. - - - - Multicast addresses are identified by IP class D addresses (in the range 224.0.0.0 to - 239.255.255.255). Multicast packets can pass across different networks through routers, so - it is possible to use multicasts in an Internet scenario as long as your network provider - supports multicasting. - - - Hosts that want to receive particular multicast messages must register their interest by joining - the multicast group. Multicast messages are not sent to networks where no host has joined - the multicast group. Class D IP addresses are used for multicast groups, to differentiate - them from normal host addresses, allowing nodes to easily detect if a message is of interest. - - - Static multicast addresses that are needed globally are assigned by IANA. A few examples are listed in the table below: - - - - - IP Address - Description - - - 224.0.0.1 - - - Sends a message to all system on the subnet. - - - - - 224.0.0.2 - - - Sends a message to all routers on the subnet. - - - - - 224.0.0.12 - - - The DHCP server answers messages on the IP address 224.0.0.12, but only on a subnet. - - - - - - - A complete list of actually reserved multicast addresses and their owners in the ranges - defined by RFC 3171 can be found at the IANA web site. - - - The address range 239.0.0.0 to 239.255.255.255 is reserved for administrative scope-relative - addresses. These addresses can be reused with other local groups. Routers are typically - configured with filters to prevent multicast traffic in this range from flowing outside - of the local network. - - - - - - Gets or sets the TCP port number of the remote host or multicast group to which - the underlying should sent the logging event. - - - An integer value in the range to - indicating the TCP port number of the remote host or multicast group to which the logging event - will be sent. - - - The underlying will send messages to this TCP port number - on the remote host or multicast group. - - The value specified is less than or greater than . - - - - Gets or sets the TCP port number from which the underlying will communicate. - - - An integer value in the range to - indicating the TCP port number from which the underlying will communicate. - - - - The underlying will bind to this port for sending messages. - - - Setting the value to 0 (the default) will cause the udp client not to bind to - a local port. - - - The value specified is less than or greater than . - - - - Gets or sets used to write the packets. - - - The used to write the packets. - - - - The used to write the packets. - - - - - - Gets or sets the underlying . - - - The underlying . - - - creates a to send logging events - over a network. Classes deriving from can use this - property to get or set this . Use the underlying - returned from if you require access beyond that which - provides. - - - - - Gets or sets the cached remote endpoint to which the logging events should be sent. - - - The cached remote endpoint to which the logging events will be sent. - - - The method will initialize the remote endpoint - with the values of the and - properties. - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Syslog port 514 - - - - - Initializes a new instance of the class. - - - This instance of the class is set up to write - to a remote syslog daemon. - - - - - Add a mapping of level to severity - - The mapping to add - - - Add a mapping to this appender. - - - - - - This method is called by the method. - - The event to log. - - - Writes the event to a remote syslog daemon. - - - The format of the output will depend on the appender's layout. - - - - - - Initialize the options for this appender - - - - Initialize the level to syslog severity mappings set on this appender. - - - - - - Translates a log4net level to a syslog severity. - - A log4net level. - A syslog severity. - - - Translates a log4net level to a syslog severity. - - - - - - Generate a syslog priority. - - The syslog facility. - The syslog severity. - A syslog priority. - - - Generate a syslog priority. - - - - - - The facility. The default facility is . - - - - - The message identity - - - - - Mapping from level object to syslog severity - - - - - Message identity - - - - An identifier is specified with each log message. This can be specified - by setting the property. The identity (also know - as the tag) must not contain white space. The default value for the - identity is the application name (from ). - - - - - - Syslog facility - - - Set to one of the values. The list of - facilities is predefined and cannot be extended. The default value - is . - - - - - syslog severities - - - - The syslog severities. - - - - - - system is unusable - - - - - action must be taken immediately - - - - - critical conditions - - - - - error conditions - - - - - warning conditions - - - - - normal but significant condition - - - - - informational - - - - - debug-level messages - - - - - syslog facilities - - - - The syslog facilities - - - - - - kernel messages - - - - - random user-level messages - - - - - mail system - - - - - system daemons - - - - - security/authorization messages - - - - - messages generated internally by syslogd - - - - - line printer subsystem - - - - - network news subsystem - - - - - UUCP subsystem - - - - - clock (cron/at) daemon - - - - - security/authorization messages (private) - - - - - ftp daemon - - - - - NTP subsystem - - - - - log audit - - - - - log alert - - - - - clock daemon - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - reserved for local use - - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - A class to act as a mapping between the level that a logging call is made at and - the syslog severity that is should be logged at. - - - - - - The mapped syslog severity for the specified level - - - - Required property. - The mapped syslog severity for the specified level - - - - - - Delivers logging events to a remote logging sink. - - - - This Appender is designed to deliver events to a remote sink. - That is any object that implements the - interface. It delivers the events using .NET remoting. The - object to deliver events to is specified by setting the - appenders property. - - The RemotingAppender buffers events before sending them. This allows it to - make more efficient use of the remoting infrastructure. - - Once the buffer is full the events are still not sent immediately. - They are scheduled to be sent using a pool thread. The effect is that - the send occurs asynchronously. This is very important for a - number of non obvious reasons. The remoting infrastructure will - flow thread local variables (stored in the ), - if they are marked as , across the - remoting boundary. If the server is not contactable then - the remoting infrastructure will clear the - objects from the . To prevent a logging failure from - having side effects on the calling application the remoting call must be made - from a separate thread to the one used by the application. A - thread is used for this. If no thread is available then - the events will block in the thread pool manager until a thread is available. - - Because the events are sent asynchronously using pool threads it is possible to close - this appender before all the queued events have been sent. - When closing the appender attempts to wait until all the queued events have been sent, but - this will timeout after 30 seconds regardless. - - If this appender is being closed because the - event has fired it may not be possible to send all the queued events. During process - exit the runtime limits the time that a - event handler is allowed to run for. If the runtime terminates the threads before - the queued events have been sent then they will be lost. To ensure that all events - are sent the appender must be closed before the application exits. See - for details on how to shutdown - log4net programmatically. - - - Nicko Cadell - Gert Driesen - Daniel Cazzulino - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Send the contents of the buffer to the remote sink. - - - The events are not sent immediately. They are scheduled to be sent - using a pool thread. The effect is that the send occurs asynchronously. - This is very important for a number of non obvious reasons. The remoting - infrastructure will flow thread local variables (stored in the ), - if they are marked as , across the - remoting boundary. If the server is not contactable then - the remoting infrastructure will clear the - objects from the . To prevent a logging failure from - having side effects on the calling application the remoting call must be made - from a separate thread to the one used by the application. A - thread is used for this. If no thread is available then - the events will block in the thread pool manager until a thread is available. - - The events to send. - - - - Override base class close. - - - - This method waits while there are queued work items. The events are - sent asynchronously using work items. These items - will be sent once a thread pool thread is available to send them, therefore - it is possible to close the appender before all the queued events have been - sent. - - This method attempts to wait until all the queued events have been sent, but this - method will timeout after 30 seconds regardless. - - If the appender is being closed because the - event has fired it may not be possible to send all the queued events. During process - exit the runtime limits the time that a - event handler is allowed to run for. - - - - - A work item is being queued into the thread pool - - - - - A work item from the thread pool has completed - - - - - Send the contents of the buffer to the remote sink. - - - This method is designed to be used with the . - This method expects to be passed an array of - objects in the state param. - - the logging events to send - - - - The URL of the remote sink. - - - - - The local proxy (.NET remoting) for the remote logging sink. - - - - - The number of queued callbacks currently waiting or executing - - - - - Event used to signal when there are no queued work items - - - This event is set when there are no queued work items. In this - state it is safe to close the appender. - - - - - Gets or sets the URL of the well-known object that will accept - the logging events. - - - The well-known URL of the remote sink. - - - - The URL of the remoting sink that will accept logging events. - The sink must implement the - interface. - - - - - - Interface used to deliver objects to a remote sink. - - - This interface must be implemented by a remoting sink - if the is to be used - to deliver logging events to the sink. - - - - - Delivers logging events to the remote sink - - Array of events to log. - - - Delivers logging events to the remote sink - - - - - - Appender that rolls log files based on size or date or both. - - - - RollingFileAppender can roll log files based on size or date or both - depending on the setting of the property. - When set to the log file will be rolled - once its size exceeds the . - When set to the log file will be rolled - once the date boundary specified in the property - is crossed. - When set to the log file will be - rolled once the date boundary specified in the property - is crossed, but within a date boundary the file will also be rolled - once its size exceeds the . - When set to the log file will be rolled when - the appender is configured. This effectively means that the log file can be - rolled once per program execution. - - - A of few additional optional features have been added: - - Attach date pattern for current log file - Backup number increments for newer files - Infinite number of backups by file size - - - - - - For large or infinite numbers of backup files a - greater than zero is highly recommended, otherwise all the backup files need - to be renamed each time a new backup is created. - - - When Date/Time based rolling is used setting - to will reduce the number of file renamings to few or none. - - - - - - Changing or without clearing - the log file directory of backup files will cause unexpected and unwanted side effects. - - - - - If Date/Time based rolling is enabled this appender will attempt to roll existing files - in the directory without a Date/Time tag based on the last write date of the base log file. - The appender only rolls the log file when a message is logged. If Date/Time based rolling - is enabled then the appender will not roll the log file at the Date/Time boundary but - at the point when the next message is logged after the boundary has been crossed. - - - - The extends the and - has the same behavior when opening the log file. - The appender will first try to open the file for writing when - is called. This will typically be during configuration. - If the file cannot be opened for writing the appender will attempt - to open the file again each time a message is logged to the appender. - If the file cannot be opened for writing when a message is logged then - the message will be discarded by this appender. - - - When rolling a backup file necessitates deleting an older backup file the - file to be deleted is moved to a temporary name before being deleted. - - - - - A maximum number of backup files when rolling on date/time boundaries is not supported. - - - - Nicko Cadell - Gert Driesen - Aspi Havewala - Douglas de la Torre - Edward Smit - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Sets the quiet writer being used. - - - This method can be overridden by sub classes. - - the writer to set - - - - Write out a logging event. - - the event to write to file. - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Write out an array of logging events. - - the events to write to file. - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Performs any required rolling before outputting the next event - - - - Handles append time behavior for RollingFileAppender. This checks - if a roll over either by date (checked first) or time (checked second) - is need and then appends to the file last. - - - - - - Creates and opens the file for logging. If - is false then the fully qualified name is determined and used. - - the name of the file to open - true to append to existing file - - This method will ensure that the directory structure - for the specified exists. - - - - - Get the current output file name - - the base file name - the output file name - - The output file name is based on the base fileName specified. - If is set then the output - file name is the same as the base file passed in. Otherwise - the output file depends on the date pattern, on the count - direction or both. - - - - - Determines curSizeRollBackups (only within the current roll point) - - - - - Generates a wildcard pattern that can be used to find all files - that are similar to the base file name. - - - - - - - Builds a list of filenames for all files matching the base filename plus a file - pattern. - - - - - - - Initiates a roll over if needed for crossing a date boundary since the last run. - - - - - Initializes based on existing conditions at time of . - - - - Initializes based on existing conditions at time of . - The following is done - - determine curSizeRollBackups (only within the current roll point) - initiates a roll over if needed for crossing a date boundary since the last run. - - - - - - - Does the work of bumping the 'current' file counter higher - to the highest count when an incremental file name is seen. - The highest count is either the first file (when count direction - is greater than 0) or the last file (when count direction less than 0). - In either case, we want to know the highest count that is present. - - - - - - - Takes a list of files and a base file name, and looks for - 'incremented' versions of the base file. Bumps the max - count up to the highest count seen. - - - - - - - Calculates the RollPoint for the datePattern supplied. - - the date pattern to calculate the check period for - The RollPoint that is most accurate for the date pattern supplied - - Essentially the date pattern is examined to determine what the - most suitable roll point is. The roll point chosen is the roll point - with the smallest period that can be detected using the date pattern - supplied. i.e. if the date pattern only outputs the year, month, day - and hour then the smallest roll point that can be detected would be - and hourly roll point as minutes could not be detected. - - - - - Initialize the appender based on the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Sets initial conditions including date/time roll over information, first check, - scheduledFilename, and calls to initialize - the current number of backups. - - - - - - Rollover the file(s) to date/time tagged file(s). - - set to true if the file to be rolled is currently open - - - Rollover the file(s) to date/time tagged file(s). - Resets curSizeRollBackups. - If fileIsOpen is set then the new file is opened (through SafeOpenFile). - - - - - - Renames file to file . - - Name of existing file to roll. - New name for file. - - - Renames file to file . It - also checks for existence of target file and deletes if it does. - - - - - - Test if a file exists at a specified path - - the path to the file - true if the file exists - - - Test if a file exists at a specified path - - - - - - Deletes the specified file if it exists. - - The file to delete. - - - Delete a file if is exists. - The file is first moved to a new filename then deleted. - This allows the file to be removed even when it cannot - be deleted, but it still can be moved. - - - - - - Implements file roll base on file size. - - - - If the maximum number of size based backups is reached - (curSizeRollBackups == maxSizeRollBackups) then the oldest - file is deleted -- its index determined by the sign of countDirection. - If countDirection < 0, then files - {File.1, ..., File.curSizeRollBackups -1} - are renamed to {File.2, ..., - File.curSizeRollBackups}. Moreover, File is - renamed File.1 and closed. - - - A new file is created to receive further log output. - - - If maxSizeRollBackups is equal to zero, then the - File is truncated with no backup files created. - - - If maxSizeRollBackups < 0, then File is - renamed if needed and no files are deleted. - - - - - - Implements file roll. - - the base name to rename - - - If the maximum number of size based backups is reached - (curSizeRollBackups == maxSizeRollBackups) then the oldest - file is deleted -- its index determined by the sign of countDirection. - If countDirection < 0, then files - {File.1, ..., File.curSizeRollBackups -1} - are renamed to {File.2, ..., - File.curSizeRollBackups}. - - - If maxSizeRollBackups is equal to zero, then the - File is truncated with no backup files created. - - - If maxSizeRollBackups < 0, then File is - renamed if needed and no files are deleted. - - - This is called by to rename the files. - - - - - - Get the start time of the next window for the current rollpoint - - the current date - the type of roll point we are working with - the start time for the next roll point an interval after the currentDateTime date - - - Returns the date of the next roll point after the currentDateTime date passed to the method. - - - The basic strategy is to subtract the time parts that are less significant - than the rollpoint from the current time. This should roll the time back to - the start of the time window for the current rollpoint. Then we add 1 window - worth of time and get the start time of the next window for the rollpoint. - - - - - - This object supplies the current date/time. Allows test code to plug in - a method to control this class when testing date/time based rolling. - - - - - The date pattern. By default, the pattern is set to ".yyyy-MM-dd" - meaning daily rollover. - - - - - The actual formatted filename that is currently being written to - or will be the file transferred to on roll over - (based on staticLogFileName). - - - - - The timestamp when we shall next recompute the filename. - - - - - Holds date of last roll over - - - - - The type of rolling done - - - - - The default maximum file size is 10MB - - - - - There is zero backup files by default - - - - - How many sized based backups have been made so far - - - - - The rolling file count direction. - - - - - The rolling mode used in this appender. - - - - - Cache flag set if we are rolling by date. - - - - - Cache flag set if we are rolling by size. - - - - - Value indicating whether to always log to the same file. - - - - - FileName provided in configuration. Used for rolling properly - - - - - The 1st of January 1970 in UTC - - - - - Gets or sets the date pattern to be used for generating file names - when rolling over on date. - - - The date pattern to be used for generating file names when rolling - over on date. - - - - Takes a string in the same format as expected by - . - - - This property determines the rollover schedule when rolling over - on date. - - - - - - Gets or sets the maximum number of backup files that are kept before - the oldest is erased. - - - The maximum number of backup files that are kept before the oldest is - erased. - - - - If set to zero, then there will be no backup files and the log file - will be truncated when it reaches . - - - If a negative number is supplied then no deletions will be made. Note - that this could result in very slow performance as a large number of - files are rolled over unless is used. - - - The maximum applies to each time based group of files and - not the total. - - - - - - Gets or sets the maximum size that the output file is allowed to reach - before being rolled over to backup files. - - - The maximum size in bytes that the output file is allowed to reach before being - rolled over to backup files. - - - - This property is equivalent to except - that it is required for differentiating the setter taking a - argument from the setter taking a - argument. - - - The default maximum file size is 10MB (10*1024*1024). - - - - - - Gets or sets the maximum size that the output file is allowed to reach - before being rolled over to backup files. - - - The maximum size that the output file is allowed to reach before being - rolled over to backup files. - - - - This property allows you to specify the maximum size with the - suffixes "KB", "MB" or "GB" so that the size is interpreted being - expressed respectively in kilobytes, megabytes or gigabytes. - - - For example, the value "10KB" will be interpreted as 10240 bytes. - - - The default maximum file size is 10MB. - - - If you have the option to set the maximum file size programmatically - consider using the property instead as this - allows you to set the size in bytes as a . - - - - - - Gets or sets the rolling file count direction. - - - The rolling file count direction. - - - - Indicates if the current file is the lowest numbered file or the - highest numbered file. - - - By default newer files have lower numbers ( < 0), - i.e. log.1 is most recent, log.5 is the 5th backup, etc... - - - >= 0 does the opposite i.e. - log.1 is the first backup made, log.5 is the 5th backup made, etc. - For infinite backups use >= 0 to reduce - rollover costs. - - The default file count direction is -1. - - - - - Gets or sets the rolling style. - - The rolling style. - - - The default rolling style is . - - - When set to this appender's - property is set to false, otherwise - the appender would append to a single file rather than rolling - the file each time it is opened. - - - - - - Gets or sets a value indicating whether to always log to - the same file. - - - true if always should be logged to the same file, otherwise false. - - - - By default file.log is always the current file. Optionally - file.log.yyyy-mm-dd for current formatted datePattern can by the currently - logging file (or file.log.curSizeRollBackup or even - file.log.yyyy-mm-dd.curSizeRollBackup). - - - This will make time based rollovers with a large number of backups - much faster as the appender it won't have to rename all the backups! - - - - - - Style of rolling to use - - - - Style of rolling to use - - - - - - Roll files once per program execution - - - - Roll files once per program execution. - Well really once each time this appender is - configured. - - - Setting this option also sets AppendToFile to - false on the RollingFileAppender, otherwise - this appender would just be a normal file appender. - - - - - - Roll files based only on the size of the file - - - - - Roll files based only on the date - - - - - Roll files based on both the size and date of the file - - - - - The code assumes that the following 'time' constants are in a increasing sequence. - - - - The code assumes that the following 'time' constants are in a increasing sequence. - - - - - - Roll the log not based on the date - - - - - Roll the log for each minute - - - - - Roll the log for each hour - - - - - Roll the log twice a day (midday and midnight) - - - - - Roll the log each day (midnight) - - - - - Roll the log each week - - - - - Roll the log each month - - - - - This interface is used to supply Date/Time information to the . - - - This interface is used to supply Date/Time information to the . - Used primarily to allow test classes to plug themselves in so they can - supply test date/times. - - - - - Gets the current time. - - The current time. - - - Gets the current time. - - - - - - Default implementation of that returns the current time. - - - - - Gets the current time. - - The current time. - - - Gets the current time. - - - - - - Send an e-mail when a specific logging event occurs, typically on errors - or fatal errors. - - - - The number of logging events delivered in this e-mail depend on - the value of option. The - keeps only the last - logging events in its - cyclic buffer. This keeps memory requirements at a reasonable level while - still delivering useful application context. - - - Authentication and setting the server Port are only available on the MS .NET 1.1 runtime. - For these features to be enabled you need to ensure that you are using a version of - the log4net assembly that is built against the MS .NET 1.1 framework and that you are - running the your application on the MS .NET 1.1 runtime. On all other platforms only sending - unauthenticated messages to a server listening on port 25 (the default) is supported. - - - Authentication is supported by setting the property to - either or . - If using authentication then the - and properties must also be set. - - - To set the SMTP server port use the property. The default port is 25. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Default constructor - - - - - - Sends the contents of the cyclic buffer as an e-mail message. - - The logging events to send. - - - - Send the email message - - the body text to include in the mail - - - - Gets or sets a semicolon-delimited list of recipient e-mail addresses. - - - A semicolon-delimited list of e-mail addresses. - - - - A semicolon-delimited list of recipient e-mail addresses. - - - - - - Gets or sets the e-mail address of the sender. - - - The e-mail address of the sender. - - - - The e-mail address of the sender. - - - - - - Gets or sets the subject line of the e-mail message. - - - The subject line of the e-mail message. - - - - The subject line of the e-mail message. - - - - - - Gets or sets the name of the SMTP relay mail server to use to send - the e-mail messages. - - - The name of the e-mail relay server. If SmtpServer is not set, the - name of the local SMTP server is used. - - - - The name of the e-mail relay server. If SmtpServer is not set, the - name of the local SMTP server is used. - - - - - - Obsolete - - - Use the BufferingAppenderSkeleton Fix methods instead - - - - Obsolete property. - - - - - - The mode to use to authentication with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - Valid Authentication mode values are: , - , and . - The default value is . When using - you must specify the - and to use to authenticate. - When using the Windows credentials for the current - thread, if impersonating, or the process will be used to authenticate. - - - - - - The username to use to authenticate with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - A and must be specified when - is set to , - otherwise the username will be ignored. - - - - - - The password to use to authenticate with the SMTP server - - - Authentication is only available on the MS .NET 1.1 runtime. - - A and must be specified when - is set to , - otherwise the password will be ignored. - - - - - - The port on which the SMTP server is listening - - - Server Port is only available on the MS .NET 1.1 runtime. - - The port on which the SMTP server is listening. The default - port is 25. The Port can only be changed when running on - the MS .NET 1.1 runtime. - - - - - - Gets or sets the priority of the e-mail message - - - One of the values. - - - - Sets the priority of the e-mails generated by this - appender. The default priority is . - - - If you are using this appender to report errors then - you may want to set the priority to . - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Values for the property. - - - - SMTP authentication modes. - - - - - - No authentication - - - - - Basic authentication. - - - Requires a username and password to be supplied - - - - - Integrated authentication - - - Uses the Windows credentials from the current thread or process to authenticate. - - - - - Send an email when a specific logging event occurs, typically on errors - or fatal errors. Rather than sending via smtp it writes a file into the - directory specified by . This allows services such - as the IIS SMTP agent to manage sending the messages. - - - - The configuration for this appender is identical to that of the SMTPAppender, - except that instead of specifying the SMTPAppender.SMTPHost you specify - . - - - The number of logging events delivered in this e-mail depend on - the value of option. The - keeps only the last - logging events in its - cyclic buffer. This keeps memory requirements at a reasonable level while - still delivering useful application context. - - - Niall Daley - Nicko Cadell - - - - Default constructor - - - - Default constructor - - - - - - Sends the contents of the cyclic buffer as an e-mail message. - - The logging events to send. - - - Sends the contents of the cyclic buffer as an e-mail message. - - - - - - Activate the options on this appender. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Convert a path into a fully qualified path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - - - - The security context to use for privileged calls - - - - - Gets or sets a semicolon-delimited list of recipient e-mail addresses. - - - A semicolon-delimited list of e-mail addresses. - - - - A semicolon-delimited list of e-mail addresses. - - - - - - Gets or sets the e-mail address of the sender. - - - The e-mail address of the sender. - - - - The e-mail address of the sender. - - - - - - Gets or sets the subject line of the e-mail message. - - - The subject line of the e-mail message. - - - - The subject line of the e-mail message. - - - - - - Gets or sets the path to write the messages to. - - - - Gets or sets the path to write the messages to. This should be the same - as that used by the agent sending the messages. - - - - - - Gets or sets the used to write to the pickup directory. - - - The used to write to the pickup directory. - - - - Unless a specified here for this appender - the is queried for the - security context to use. The default behavior is to use the security context - of the current thread. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Appender that allows clients to connect via Telnet to receive log messages - - - - The TelnetAppender accepts socket connections and streams logging messages - back to the client. - The output is provided in a telnet-friendly way so that a log can be monitored - over a TCP/IP socket. - This allows simple remote monitoring of application logging. - - - The default is 23 (the telnet port). - - - Keith Long - Nicko Cadell - - - - Default constructor - - - - Default constructor - - - - - - Overrides the parent method to close the socket handler - - - - Closes all the outstanding connections. - - - - - - Initialize the appender based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Create the socket handler and wait for connections - - - - - - Writes the logging event to each connected client. - - The event to log. - - - Writes the logging event to each connected client. - - - - - - Gets or sets the TCP port number on which this will listen for connections. - - - An integer value in the range to - indicating the TCP port number on which this will listen for connections. - - - - The default value is 23 (the telnet port). - - - The value specified is less than - or greater than . - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Helper class to manage connected clients - - - - The SocketHandler class is used to accept connections from - clients. It is threaded so that clients can connect/disconnect - asynchronously. - - - - - - Opens a new server port on - - the local port to listen on for connections - - - Creates a socket handler on the specified local server port. - - - - - - Sends a string message to each of the connected clients - - the text to send - - - Sends a string message to each of the connected clients - - - - - - Add a client to the internal clients list - - client to add - - - - Remove a client from the internal clients list - - client to remove - - - - Callback used to accept a connection on the server socket - - The result of the asynchronous operation - - - On connection adds to the list of connections - if there are two many open connections you will be disconnected - - - - - - Close all network connections - - - - Make sure we close all network connections - - - - - - Test if this handler has active connections - - - true if this handler has active connections - - - - This property will be true while this handler has - active connections, that is at least one connection that - the handler will attempt to send a message to. - - - - - - Class that represents a client connected to this handler - - - - Class that represents a client connected to this handler - - - - - - Create this for the specified - - the client's socket - - - Opens a stream writer on the socket. - - - - - - Write a string to the client - - string to send - - - Write a string to the client - - - - - - Cleanup the clients connection - - - - Close the socket connection. - - - - - - Appends log events to the system. - - - - The application configuration file can be used to control what listeners - are actually used. See the MSDN documentation for the - class for details on configuring the - trace system. - - - Events are written using the System.Diagnostics.Trace.Write(string,string) - method. The event's logger name is passed as the value for the category name to the Write method. - - - Compact Framework
- The Compact Framework does not support the - class for any operation except Assert. When using the Compact Framework this - appender will write to the system rather than - the Trace system. This appender will therefore behave like the . -
-
- Douglas de la Torre - Nicko Cadell - Gert Driesen -
- - - Initializes a new instance of the . - - - - Default constructor. - - - - - - Initializes a new instance of the - with a specified layout. - - The layout to use with this appender. - - - Obsolete constructor. - - - - - - Writes the logging event to the system. - - The event to log. - - - Writes the logging event to the system. - - - - - - Immediate flush means that the underlying writer or output stream - will be flushed at the end of each append operation. - - - - Immediate flush is slower but ensures that each append request is - actually written. If is set to - false, then there is a good chance that the last few - logs events are not actually written to persistent media if and - when the application crashes. - - - The default value is true. - - - - - Gets or sets a value that indicates whether the appender will - flush at the end of each write. - - - The default behavior is to flush at the end of each - write. If the option is set tofalse, then the underlying - stream can defer writing to physical medium to a later time. - - - Avoiding the flush operation at the end of each append results - in a performance gain of 10 to 20 percent. However, there is safety - trade-off involved in skipping flushing. Indeed, when flushing is - skipped, then it is likely that the last few log events will not - be recorded on disk when the application exits. This is a high - price to pay even for a 20% performance gain. - - - - - - This appender requires a to be set. - - true - - - This appender requires a to be set. - - - - - - Assembly level attribute that specifies a domain to alias to this assembly's repository. - - - - AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute. - - - An assembly's logger repository is defined by its , - however this can be overridden by an assembly loaded before the target assembly. - - - An assembly can alias another assembly's domain to its repository by - specifying this attribute with the name of the target domain. - - - This attribute can only be specified on the assembly and may be used - as many times as necessary to alias all the required domains. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute that specifies a repository to alias to this assembly's repository. - - - - An assembly's logger repository is defined by its , - however this can be overridden by an assembly loaded before the target assembly. - - - An assembly can alias another assembly's repository to its repository by - specifying this attribute with the name of the target repository. - - - This attribute can only be specified on the assembly and may be used - as many times as necessary to alias all the required repositories. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class with - the specified repository to alias to this assembly's repository. - - The repository to alias to this assemby's repository. - - - Initializes a new instance of the class with - the specified repository to alias to this assembly's repository. - - - - - - Gets or sets the repository to alias to this assemby's repository. - - - The repository to alias to this assemby's repository. - - - - The name of the repository to alias to this assemby's repository. - - - - - - Initializes a new instance of the class with - the specified domain to alias to this assembly's repository. - - The domain to alias to this assemby's repository. - - - Obsolete. Use instead of . - - - - - - Use this class to quickly configure a . - - - - Allows very simple programmatic configuration of log4net. - - - Only one appender can be configured using this configurator. - The appender is set at the root of the hierarchy and all logging - events will be delivered to that appender. - - - Appenders can also implement the interface. Therefore - they would require that the method - be called after the appenders properties have been configured. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Initializes the log4net system with a default configuration. - - - - Initializes the log4net logging system using a - that will write to Console.Out. The log messages are - formatted using the layout object - with the - layout style. - - - - - - Initializes the log4net system using the specified appender. - - The appender to use to log all logging events. - - - Initializes the log4net system using the specified appender. - - - - - - Initializes the with a default configuration. - - The repository to configure. - - - Initializes the specified repository using a - that will write to Console.Out. The log messages are - formatted using the layout object - with the - layout style. - - - - - - Initializes the using the specified appender. - - The repository to configure. - The appender to use to log all logging events. - - - Initializes the using the specified appender. - - - - - - Base class for all log4net configuration attributes. - - - This is an abstract class that must be extended by - specific configurators. This attribute allows the - configurator to be parameterized by an assembly level - attribute. - - Nicko Cadell - Gert Driesen - - - - Constructor used by subclasses. - - the ordering priority for this configurator - - - The is used to order the configurator - attributes before they are invoked. Higher priority configurators are executed - before lower priority ones. - - - - - - Configures the for the specified assembly. - - The assembly that this attribute was defined on. - The repository to configure. - - - Abstract method implemented by a subclass. When this method is called - the subclass should configure the . - - - - - - Compare this instance to another ConfiguratorAttribute - - the object to compare to - see - - - Compares the priorities of the two instances. - Sorts by priority in descending order. Objects with the same priority are - randomly ordered. - - - - - - Assembly level attribute that specifies the logging domain for the assembly. - - - - DomainAttribute is obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - Assemblies are mapped to logging domains. Each domain has its own - logging repository. This attribute specified on the assembly controls - the configuration of the domain. The property specifies the name - of the domain that this assembly is a part of. The - specifies the type of the repository objects to create for the domain. If - this attribute is not specified and a is not specified - then the assembly will be part of the default shared logging domain. - - - This attribute can only be specified on the assembly and may only be used - once per assembly. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute that specifies the logging repository for the assembly. - - - - Assemblies are mapped to logging repository. This attribute specified - on the assembly controls - the configuration of the repository. The property specifies the name - of the repository that this assembly is a part of. The - specifies the type of the object - to create for the assembly. If this attribute is not specified or a - is not specified then the assembly will be part of the default shared logging repository. - - - This attribute can only be specified on the assembly and may only be used - once per assembly. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Initialize a new instance of the class - with the name of the repository. - - The name of the repository. - - - Initialize the attribute with the name for the assembly's repository. - - - - - - Gets or sets the name of the logging repository. - - - The string name to use as the name of the repository associated with this - assembly. - - - - This value does not have to be unique. Several assemblies can share the - same repository. They will share the logging configuration of the repository. - - - - - - Gets or sets the type of repository to create for this assembly. - - - The type of repository to create for this assembly. - - - - The type of the repository to create for the assembly. - The type must implement the - interface. - - - This will be the type of repository created when - the repository is created. If multiple assemblies reference the - same repository then the repository is only created once using the - of the first assembly to call into the - repository. - - - - - - Initializes a new instance of the class. - - - - Obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - - - - Initialize a new instance of the class - with the name of the domain. - - The name of the domain. - - - Obsolete. Use RepositoryAttribute instead of DomainAttribute. - - - - - - Use this class to initialize the log4net environment using an Xml tree. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - Configures a using an Xml tree. - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - - - Automatically configures the log4net system based on the - application's configuration settings. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - - - Automatically configures the using settings - stored in the application's configuration file. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - The repository to configure. - - - - Configures log4net using a log4net element - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Loads the log4net configuration from the XML element - supplied as . - - The element to parse. - - - - Configures the using the specified XML - element. - - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - Loads the log4net configuration from the XML element - supplied as . - - The repository to configure. - The element to parse. - - - - Configures log4net using the specified configuration file. - - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - DOMConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures log4net using the specified configuration file. - - A stream to load the XML configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - DOMConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The stream to load the XML configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures log4net using the file specified, monitors the file for changes - and reloads the configuration if a change is detected. - - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the using the file specified, - monitors the file for changes and reloads the configuration if a change - is detected. - - The repository to configure. - The XML file to load the configuration from. - - - DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Assembly level attribute to configure the . - - - - AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute. - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - Nicko Cadell - Gert Driesen - - - - Assembly level attribute to configure the . - - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - If neither of the or - properties are set the configuration is loaded from the application's .config file. - If set the property takes priority over the - property. The property - specifies a path to a file to load the config from. The path is relative to the - application's base directory; . - The property is used as a postfix to the assembly file name. - The config file must be located in the application's base directory; . - For example in a console application setting the to - config has the same effect as not specifying the or - properties. - - - The property can be set to cause the - to watch the configuration file for changes. - - - - Log4net will only look for assembly level configuration attributes once. - When using the log4net assembly level attributes to control the configuration - of log4net you must ensure that the first call to any of the - methods is made from the assembly with the configuration - attributes. - - - If you cannot guarantee the order in which log4net calls will be made from - different assemblies you must use programmatic configuration instead, i.e. - call the method directly. - - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Default constructor - - - - - - Configures the for the specified assembly. - - The assembly that this attribute was defined on. - The repository to configure. - - - Configure the repository using the . - The specified must extend the - class otherwise the will not be able to - configure it. - - - The does not extend . - - - - Attempt to load configuration from the local file system - - The assembly that this attribute was defined on. - The repository to configure. - - - - Configure the specified repository using a - - The repository to configure. - the FileInfo pointing to the config file - - - - Attempt to load configuration from a URI - - The assembly that this attribute was defined on. - The repository to configure. - - - - Gets or sets the filename of the configuration file. - - - The filename of the configuration file. - - - - If specified, this is the name of the configuration file to use with - the . This file path is relative to the - application base directory (). - - - The takes priority over the . - - - - - - Gets or sets the extension of the configuration file. - - - The extension of the configuration file. - - - - If specified this is the extension for the configuration file. - The path to the config file is built by using the application - base directory (), - the assembly file name and the config file extension. - - - If the is set to MyExt then - possible config file names would be: MyConsoleApp.exe.MyExt or - MyClassLibrary.dll.MyExt. - - - The takes priority over the . - - - - - - Gets or sets a value indicating whether to watch the configuration file. - - - true if the configuration should be watched, false otherwise. - - - - If this flag is specified and set to true then the framework - will watch the configuration file and will reload the config each time - the file is modified. - - - The config file can only be watched if it is loaded from local disk. - In a No-Touch (Smart Client) deployment where the application is downloaded - from a web server the config file may not reside on the local disk - and therefore it may not be able to watch it. - - - Watching configuration is not supported on the SSCLI. - - - - - - Class to register for the log4net section of the configuration file - - - The log4net section of the configuration file needs to have a section - handler registered. This is the section handler used. It simply returns - the XML element that is the root of the section. - - - Example of registering the log4net section handler : - - - -
- - - log4net configuration XML goes here - - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Default constructor. - - - - - - Parses the configuration section. - - The configuration settings in a corresponding parent configuration section. - The configuration context when called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is a null reference. - The for the log4net section. - The for the log4net section. - - - Returns the containing the configuration data, - - - - - - Assembly level attribute that specifies a plugin to attach to - the repository. - - - - Specifies the type of a plugin to create and attach to the - assembly's repository. The plugin type must implement the - interface. - - - Nicko Cadell - Gert Driesen - - - - Interface used to create plugins. - - - - Interface used to create a plugin. - - - Nicko Cadell - Gert Driesen - - - - Creates the plugin object. - - the new plugin instance - - - Create and return a new plugin instance. - - - - - - Initializes a new instance of the class - with the specified type. - - The type name of plugin to create. - - - Create the attribute with the plugin type specified. - - - Where possible use the constructor that takes a . - - - - - - Initializes a new instance of the class - with the specified type. - - The type of plugin to create. - - - Create the attribute with the plugin type specified. - - - - - - Creates the plugin object defined by this attribute. - - - - Creates the instance of the object as - specified by this attribute. - - - The plugin object. - - - - Returns a representation of the properties of this object. - - - - Overrides base class method to - return a representation of the properties of this object. - - - A representation of the properties of this object - - - - Gets or sets the type for the plugin. - - - The type for the plugin. - - - - The type for the plugin. - - - - - - Gets or sets the type name for the plugin. - - - The type name for the plugin. - - - - The type name for the plugin. - - - Where possible use the property instead. - - - - - - Assembly level attribute to configure the . - - - - This attribute may only be used at the assembly scope and can only - be used once per assembly. - - - Use this attribute to configure the - without calling one of the - methods. - - - Nicko Cadell - - - - Construct provider attribute with type specified - - the type of the provider to use - - - The provider specified must subclass the - class. - - - - - - Configures the SecurityContextProvider - - The assembly that this attribute was defined on. - The repository to configure. - - - Creates a provider instance from the specified. - Sets this as the default security context provider . - - - - - - Gets or sets the type of the provider to use. - - - the type of the provider to use. - - - - The provider specified must subclass the - class. - - - - - - Use this class to initialize the log4net environment using an Xml tree. - - - - Configures a using an Xml tree. - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - - - Automatically configures the log4net system based on the - application's configuration settings. - - - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - To use this method to configure log4net you must specify - the section - handler for the log4net configuration section. See the - for an example. - - - - - - - Automatically configures the using settings - stored in the application's configuration file. - - - - Each application has a configuration file. This has the - same name as the application with '.config' appended. - This file is XML and calling this function prompts the - configurator to look in that file for a section called - log4net that contains the configuration data. - - - To use this method to configure log4net you must specify - the section - handler for the log4net configuration section. See the - for an example. - - - The repository to configure. - - - - Configures log4net using a log4net element - - - - Loads the log4net configuration from the XML element - supplied as . - - - The element to parse. - - - - Configures the using the specified XML - element. - - - Loads the log4net configuration from the XML element - supplied as . - - The repository to configure. - The element to parse. - - - - Configures log4net using the specified configuration file. - - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The first element matching <configuration> will be read as the - configuration. If this file is also a .NET .config file then you must specify - a configuration section for the log4net element otherwise .NET will - complain. Set the type for the section handler to , for example: - - -
- - - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - XmlConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures log4net using the specified configuration URI. - - A URI to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - The must support the URI scheme specified. - - - - - - Configures log4net using the specified configuration data stream. - - A stream to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the log4net configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The log4net configuration file can possible be specified in the application's - configuration file (either MyAppName.exe.config for a - normal application on Web.config for an ASP.NET application). - - - The first element matching <configuration> will be read as the - configuration. If this file is also a .NET .config file then you must specify - a configuration section for the log4net element otherwise .NET will - complain. Set the type for the section handler to , for example: - - -
- - - - - The following example configures log4net using a configuration file, of which the - location is stored in the application's configuration file : - - - using log4net.Config; - using System.IO; - using System.Configuration; - - ... - - XmlConfigurator.Configure(new FileInfo(ConfigurationSettings.AppSettings["log4net-config-file"])); - - - In the .config file, the path to the log4net can be specified like this : - - - - - - - - - - - - - Configures the using the specified configuration - URI. - - The repository to configure. - A URI to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The must support the URI scheme specified. - - - - - - Configures the using the specified configuration - file. - - The repository to configure. - The stream to load the XML configuration from. - - - The configuration data must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - Note that this method will NOT close the stream parameter. - - - - - - Configures log4net using the file specified, monitors the file for changes - and reloads the configuration if a change is detected. - - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the using the file specified, - monitors the file for changes and reloads the configuration if a change - is detected. - - The repository to configure. - The XML file to load the configuration from. - - - The configuration file must be valid XML. It must contain - at least one element called log4net that holds - the configuration data. - - - The configuration file will be monitored using a - and depends on the behavior of that class. - - - For more information on how to configure log4net using - a separate configuration file, see . - - - - - - - Configures the specified repository using a log4net element. - - The hierarchy to configure. - The element to parse. - - - Loads the log4net configuration from the XML element - supplied as . - - - This method is ultimately called by one of the Configure methods - to load the configuration from an . - - - - - - Class used to watch config files. - - - - Uses the to monitor - changes to a specified file. Because multiple change notifications - may be raised when the file is modified, a timer is used to - compress the notifications into a single event. The timer - waits for time before delivering - the event notification. If any further - change notifications arrive while the timer is waiting it - is reset and waits again for to - elapse. - - - - - - The default amount of time to wait after receiving notification - before reloading the config file. - - - - - Watch a specified config file used to configure a repository - - The repository to configure. - The configuration file to watch. - - - Watch a specified config file used to configure a repository - - - - - - Holds the FileInfo used to configure the XmlConfigurator - - - - - Holds the repository being configured. - - - - - The timer used to compress the notification events. - - - - - Initializes a new instance of the class. - - The repository to configure. - The configuration file to watch. - - - Initializes a new instance of the class. - - - - - - Event handler used by . - - The firing the event. - The argument indicates the file that caused the event to be fired. - - - This handler reloads the configuration from the file when the event is fired. - - - - - - Event handler used by . - - The firing the event. - The argument indicates the file that caused the event to be fired. - - - This handler reloads the configuration from the file when the event is fired. - - - - - - Called by the timer when the configuration has been updated. - - null - - - - The implementation of the interface suitable - for use with the compact framework - - - - This implementation is a simple - mapping between repository name and - object. - - - The .NET Compact Framework 1.0 does not support retrieving assembly - level attributes therefore unlike the DefaultRepositorySelector - this selector does not examine the calling assembly for attributes. - - - Nicko Cadell - - - - Interface used by the to select the . - - - - The uses a - to specify the policy for selecting the correct - to return to the caller. - - - Nicko Cadell - Gert Driesen - - - - Gets the for the specified assembly. - - The assembly to use to lookup to the - The for the assembly. - - - Gets the for the specified assembly. - - - How the association between and - is made is not defined. The implementation may choose any method for - this association. The results of this method must be repeatable, i.e. - when called again with the same arguments the result must be the - save value. - - - - - - Gets the named . - - The name to use to lookup to the . - The named - - Lookup a named . This is the repository created by - calling . - - - - - Creates a new repository for the assembly specified. - - The assembly to use to create the domain to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the domain - specified such that a call to with the - same assembly specified will return the same repository instance. - - - How the association between and - is made is not defined. The implementation may choose any method for - this association. - - - - - - Creates a new repository with the name specified. - - The name to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the name - specified such that a call to with the - same name will return the same repository instance. - - - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets an array of all currently defined repositories. - - - An array of the instances created by - this . - - - Gets an array of all of the repositories created by this selector. - - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - Create a new repository selector - - the type of the repositories to create, must implement - - - Create an new compact repository selector. - The default type for repositories must be specified, - an appropriate value would be . - - - throw if is null - throw if does not implement - - - - Get the for the specified assembly - - not used - The default - - - The argument is not used. This selector does not create a - separate repository for each assembly. - - - As a named repository is not specified the default repository is - returned. The default repository is named log4net-default-repository. - - - - - - Get the named - - the name of the repository to lookup - The named - - - Get the named . The default - repository is log4net-default-repository. Other repositories - must be created using the . - If the named repository does not exist an exception is thrown. - - - throw if is null - throw if the does not exist - - - - Create a new repository for the assembly specified - - not used - the type of repository to create, must implement - the repository created - - - The argument is not used. This selector does not create a - separate repository for each assembly. - - - If the is null then the - default repository type specified to the constructor is used. - - - As a named repository is not specified the default repository is - returned. The default repository is named log4net-default-repository. - - - - - - Create a new repository for the repository specified - - the repository to associate with the - the type of repository to create, must implement . - If this param is null then the default repository type is used. - the repository created - - - The created will be associated with the repository - specified such that a call to with the - same repository specified will return the same repository instance. - - - If the named repository already exists an exception will be thrown. - - - If is null then the default - repository type specified to the constructor is used. - - - throw if is null - throw if the already exists - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets a list of objects - - an array of all known objects - - - Gets an array of all of the repositories created by this selector. - - - - - - Notify the registered listeners that the repository has been created - - The repository that has been created - - - Raises the LoggerRepositoryCreatedEvent - event. - - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - The default implementation of the interface. - - - - Uses attributes defined on the calling assembly to determine how to - configure the hierarchy for the repository. - - - Nicko Cadell - Gert Driesen - - - - Creates a new repository selector. - - The type of the repositories to create, must implement - - - Create an new repository selector. - The default type for repositories must be specified, - an appropriate value would be . - - - is . - does not implement . - - - - Gets the for the specified assembly. - - The assembly use to lookup the . - - - The type of the created and the repository - to create can be overridden by specifying the - attribute on the . - - - The default values are to use the - implementation of the interface and to use the - as the name of the repository. - - - The created will be automatically configured using - any attributes defined on - the . - - - The for the assembly - is . - - - - Gets the for the specified repository. - - The repository to use to lookup the . - The for the specified repository. - - - Returns the named repository. If is null - a is thrown. If the repository - does not exist a is thrown. - - - Use to create a repository. - - - is . - does not exist. - - - - Create a new repository for the assembly specified - - the assembly to use to create the repository to associate with the . - The type of repository to create, must implement . - The repository created. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The type of the created and - the repository to create can be overridden by specifying the - attribute on the - . The default values are to use the - implementation of the - interface and to use the - as the name of the repository. - - - The created will be automatically - configured using any - attributes defined on the . - - - If a repository for the already exists - that repository will be returned. An error will not be raised and that - repository may be of a different type to that specified in . - Also the attribute on the - assembly may be used to override the repository type specified in - . - - - is . - - - - Creates a new repository for the assembly specified. - - the assembly to use to create the repository to associate with the . - The type of repository to create, must implement . - The name to assign to the created repository - Set to true to read and apply the assembly attributes - The repository created. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The type of the created and - the repository to create can be overridden by specifying the - attribute on the - . The default values are to use the - implementation of the - interface and to use the - as the name of the repository. - - - The created will be automatically - configured using any - attributes defined on the . - - - If a repository for the already exists - that repository will be returned. An error will not be raised and that - repository may be of a different type to that specified in . - Also the attribute on the - assembly may be used to override the repository type specified in - . - - - is . - - - - Creates a new repository for the specified repository. - - The repository to associate with the . - The type of repository to create, must implement . - If this param is then the default repository type is used. - The new repository. - - - The created will be associated with the repository - specified such that a call to with the - same repository specified will return the same repository instance. - - - is . - already exists. - - - - Test if a named repository exists - - the named repository to check - true if the repository exists - - - Test if a named repository exists. Use - to create a new repository and to retrieve - a repository. - - - - - - Gets a list of objects - - an array of all known objects - - - Gets an array of all of the repositories created by this selector. - - - - - - Aliases a repository to an existing repository. - - The repository to alias. - The repository that the repository is aliased to. - - - The repository specified will be aliased to the repository when created. - The repository must not already exist. - - - When the repository is created it must utilize the same repository type as - the repository it is aliased to, otherwise the aliasing will fail. - - - - is . - -or- - is . - - - - - Notifies the registered listeners that the repository has been created. - - The repository that has been created. - - - Raises the event. - - - - - - Gets the repository name and repository type for the specified assembly. - - The assembly that has a . - in/out param to hold the repository name to use for the assembly, caller should set this to the default value before calling. - in/out param to hold the type of the repository to create for the assembly, caller should set this to the default value before calling. - is . - - - - Configures the repository using information from the assembly. - - The assembly containing - attributes which define the configuration for the repository. - The repository to configure. - - is . - -or- - is . - - - - - Loads the attribute defined plugins on the assembly. - - The assembly that contains the attributes. - The repository to add the plugins to. - - is . - -or- - is . - - - - - Loads the attribute defined aliases on the assembly. - - The assembly that contains the attributes. - The repository to alias to. - - is . - -or- - is . - - - - - Event to notify that a logger repository has been created. - - - Event to notify that a logger repository has been created. - - - - Event raised when a new repository is created. - The event source will be this selector. The event args will - be a which - holds the newly created . - - - - - - Defined error codes that can be passed to the method. - - - - Values passed to the method. - - - Nicko Cadell - - - - A general error - - - - - Error while writing output - - - - - Failed to flush file - - - - - Failed to close file - - - - - Unable to open output file - - - - - No layout specified - - - - - Failed to parse address - - - - - Appenders may delegate their error handling to an . - - - - Error handling is a particularly tedious to get right because by - definition errors are hard to predict and to reproduce. - - - Nicko Cadell - Gert Driesen - - - - Handles the error and information about the error condition is passed as - a parameter. - - The message associated with the error. - The that was thrown when the error occurred. - The error code associated with the error. - - - Handles the error and information about the error condition is passed as - a parameter. - - - - - - Prints the error message passed as a parameter. - - The message associated with the error. - The that was thrown when the error occurred. - - - See . - - - - - - Prints the error message passed as a parameter. - - The message associated with the error. - - - See . - - - - - - Interface for objects that require fixing. - - - - Interface that indicates that the object requires fixing before it - can be taken outside the context of the appender's - method. - - - When objects that implement this interface are stored - in the context properties maps - and - are fixed - (see ) the - method will be called. - - - Nicko Cadell - - - - Get a portable version of this object - - the portable instance of this object - - - Get a portable instance object that represents the current - state of this object. The portable object can be stored - and logged from any thread with identical results. - - - - - - Interface that all loggers implement - - - - This interface supports logging events and testing if a level - is enabled for logging. - - - These methods will not throw exceptions. Note to implementor, ensure - that the implementation of these methods cannot allow an exception - to be thrown to the caller. - - - Nicko Cadell - Gert Driesen - - - - This generic form is intended to be used by wrappers. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - the exception to log, including its stack trace. Pass null to not log an exception. - - - Generates a logging event for the specified using - the and . - - - - - - This is the most generic printing method that is intended to be used - by wrappers. - - The event being logged. - - - Logs the specified logging event through this logger. - - - - - - Checks if this logger is enabled for a given passed as parameter. - - The level to check. - - true if this logger is enabled for level, otherwise false. - - - - Test if this logger is going to log events of the specified . - - - - - - Gets the name of the logger. - - - The name of the logger. - - - - The name of this logger - - - - - - Gets the where this - Logger instance is attached to. - - - The that this logger belongs to. - - - - Gets the where this - Logger instance is attached to. - - - - - - Base interface for all wrappers - - - - Base interface for all wrappers. - - - All wrappers must implement this interface. - - - Nicko Cadell - - - - Get the implementation behind this wrapper object. - - - The object that in implementing this object. - - - - The object that in implementing this - object. The Logger object may not - be the same object as this object because of logger decorators. - This gets the actual underlying objects that is used to process - the log events. - - - - - - Delegate used to handle logger repository creation event notifications - - The which created the repository. - The event args - that holds the instance that has been created. - - - Delegate used to handle logger repository creation event notifications. - - - - - - Provides data for the event. - - - - A - event is raised every time a is created. - - - - - - The created - - - - - Construct instance using specified - - the that has been created - - - Construct instance using specified - - - - - - The that has been created - - - The that has been created - - - - The that has been created - - - - - - Test if an triggers an action - - - - Implementations of this interface allow certain appenders to decide - when to perform an appender specific action. - - - The action or behavior triggered is defined by the implementation. - - - Nicko Cadell - - - - Test if this event triggers the action - - The event to check - true if this event triggers the action, otherwise false - - - Return true if this event triggers the action - - - - - - Defines the default set of levels recognized by the system. - - - - Each has an associated . - - - Levels have a numeric that defines the relative - ordering between levels. Two Levels with the same - are deemed to be equivalent. - - - The levels that are recognized by log4net are set for each - and each repository can have different levels defined. The levels are stored - in the on the repository. Levels are - looked up by name from the . - - - When logging at level INFO the actual level used is not but - the value of LoggerRepository.LevelMap["INFO"]. The default value for this is - , but this can be changed by reconfiguring the level map. - - - Each level has a in addition to its . The - is the string that is written into the output log. By default - the display name is the same as the level name, but this can be used to alias levels - or to localize the log output. - - - Some of the predefined levels recognized by the system are: - - - - . - - - . - - - . - - - . - - - . - - - . - - - . - - - - Nicko Cadell - Gert Driesen - - - - Constructor - - Integer value for this level, higher values represent more severe levels. - The string name of this level. - The display name for this level. This may be localized or otherwise different from the name - - - Initializes a new instance of the class with - the specified level name and value. - - - - - - Constructor - - Integer value for this level, higher values represent more severe levels. - The string name of this level. - - - Initializes a new instance of the class with - the specified level name and value. - - - - - - Returns the representation of the current - . - - - A representation of the current . - - - - Returns the level . - - - - - - Compares levels. - - The object to compare against. - true if the objects are equal. - - - Compares the levels of instances, and - defers to base class if the target object is not a - instance. - - - - - - Returns a hash code - - A hash code for the current . - - - Returns a hash code suitable for use in hashing algorithms and data - structures like a hash table. - - - Returns the hash code of the level . - - - - - - Compares this instance to a specified object and returns an - indication of their relative values. - - A instance or to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the - values compared. The return value has these meanings: - - - Value - Meaning - - - Less than zero - This instance is less than . - - - Zero - This instance is equal to . - - - Greater than zero - - This instance is greater than . - -or- - is . - - - - - - - must be an instance of - or ; otherwise, an exception is thrown. - - - is not a . - - - - Returns a value indicating whether a specified - is greater than another specified . - - A - A - - true if is greater than - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is less than another specified . - - A - A - - true if is less than - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is greater than or equal to another specified . - - A - A - - true if is greater than or equal to - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether a specified - is less than or equal to another specified . - - A - A - - true if is less than or equal to - ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether two specified - objects have the same value. - - A or . - A or . - - true if the value of is the same as the - value of ; otherwise, false. - - - - Compares two levels. - - - - - - Returns a value indicating whether two specified - objects have different values. - - A or . - A or . - - true if the value of is different from - the value of ; otherwise, false. - - - - Compares two levels. - - - - - - Compares two specified instances. - - The first to compare. - The second to compare. - - A 32-bit signed integer that indicates the relative order of the - two values compared. The return value has these meanings: - - - Value - Meaning - - - Less than zero - is less than . - - - Zero - is equal to . - - - Greater than zero - is greater than . - - - - - - Compares two levels. - - - - - - The level designates a higher level than all the rest. - - - - - The level designates very severe error events. - System unusable, emergencies. - - - - - The level designates very severe error events - that will presumably lead the application to abort. - - - - - The level designates very severe error events. - Take immediate action, alerts. - - - - - The level designates very severe error events. - Critical condition, critical. - - - - - The level designates very severe error events. - - - - - The level designates error events that might - still allow the application to continue running. - - - - - The level designates potentially harmful - situations. - - - - - The level designates informational messages - that highlight the progress of the application at the highest level. - - - - - The level designates informational messages that - highlight the progress of the application at coarse-grained level. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates fine-grained informational - events that are most useful to debug an application. - - - - - The level designates the lowest level possible. - - - - - Gets the name of this level. - - - The name of this level. - - - - Gets the name of this level. - - - - - - Gets the value of this level. - - - The value of this level. - - - - Gets the value of this level. - - - - - - Gets the display name of this level. - - - The display name of this level. - - - - Gets the display name of this level. - - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a LevelCollection instance. - - list to create a readonly wrapper arround - - A LevelCollection wrapper that is read-only. - - - - - Initializes a new instance of the LevelCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the LevelCollection class - that has the specified initial capacity. - - - The number of elements that the new LevelCollection is initially capable of storing. - - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified LevelCollection. - - The LevelCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the LevelCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - Copies the entire LevelCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire LevelCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the LevelCollection. - - The to be added to the end of the LevelCollection. - The index at which the value has been added. - - - - Removes all elements from the LevelCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the LevelCollection. - - The to check for. - true if is found in the LevelCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the LevelCollection. - - The to locate in the LevelCollection. - - The zero-based index of the first occurrence of - in the entire LevelCollection, if found; otherwise, -1. - - - - - Inserts an element into the LevelCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the LevelCollection. - - The to remove from the LevelCollection. - - The specified was not found in the LevelCollection. - - - - - Removes the element at the specified index of the LevelCollection. - - The zero-based index of the element to remove. - - is less than zero - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the LevelCollection. - - An for the entire LevelCollection. - - - - Adds the elements of another LevelCollection to the current LevelCollection. - - The LevelCollection whose elements should be added to the end of the current LevelCollection. - The new of the LevelCollection. - - - - Adds the elements of a array to the current LevelCollection. - - The array whose elements should be added to the end of the LevelCollection. - The new of the LevelCollection. - - - - Adds the elements of a collection to the current LevelCollection. - - The collection whose elements should be added to the end of the LevelCollection. - The new of the LevelCollection. - - - - Sets the capacity to the actual number of elements. - - - - - is less than zero - -or- - is equal to or greater than . - - - - - is less than zero - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the LevelCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - The zero-based index of the element to get or set. - - is less than zero - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false - - - - Gets or sets the number of elements the LevelCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - A value - - - - - Supports simple iteration over a . - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - An evaluator that triggers at a threshold level - - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - Nicko Cadell - - - - The threshold for triggering - - - - - Create a new evaluator using the threshold. - - - - Create a new evaluator using the threshold. - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Create a new evaluator using the specified threshold. - - the threshold to trigger at - - - Create a new evaluator using the specified threshold. - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Is this the triggering event? - - The event to check - This method returns true, if the event level - is equal or higher than the . - Otherwise it returns false - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - the threshold to trigger at - - - The that will cause this evaluator to trigger - - - - This evaluator will trigger if the level of the event - passed to - is equal to or greater than the - level. - - - - - - Mapping between string name and Level object - - - - Mapping between string name and object. - This mapping is held separately for each . - The level name is case insensitive. - - - Nicko Cadell - - - - Mapping from level name to Level object. The - level name is case insensitive - - - - - Construct the level map - - - - Construct the level map. - - - - - - Clear the internal maps of all levels - - - - Clear the internal maps of all levels - - - - - - Create a new Level and add it to the map - - the string to display for the Level - the level value to give to the Level - - - Create a new Level and add it to the map - - - - - - - Create a new Level and add it to the map - - the string to display for the Level - the level value to give to the Level - the display name to give to the Level - - - Create a new Level and add it to the map - - - - - - Add a Level to the map - - the Level to add - - - Add a Level to the map - - - - - - Lookup a named level from the map - - the name of the level to lookup is taken from this level. - If the level is not set on the map then this level is added - the level in the map with the name specified - - - Lookup a named level from the map. The name of the level to lookup is taken - from the property of the - argument. - - - If no level with the specified name is found then the - argument is added to the level map - and returned. - - - - - - Lookup a by name - - The name of the Level to lookup - a Level from the map with the name specified - - - Returns the from the - map with the name specified. If the no level is - found then null is returned. - - - - - - Return all possible levels as a list of Level objects. - - all possible levels as a list of Level objects - - - Return all possible levels as a list of Level objects. - - - - - - The internal representation of caller location information. - - - - This class uses the System.Diagnostics.StackTrace class to generate - a call stack. The caller's information is then extracted from this stack. - - - The System.Diagnostics.StackTrace class is not supported on the - .NET Compact Framework 1.0 therefore caller location information is not - available on that framework. - - - The System.Diagnostics.StackTrace class has this to say about Release builds: - - - "StackTrace information will be most informative with Debug build configurations. - By default, Debug builds include debug symbols, while Release builds do not. The - debug symbols contain most of the file, method name, line number, and column - information used in constructing StackFrame and StackTrace objects. StackTrace - might not report as many method calls as expected, due to code transformations - that occur during optimization." - - - This means that in a Release build the caller information may be incomplete or may - not exist at all! Therefore caller location information cannot be relied upon in a Release build. - - - Nicko Cadell - Gert Driesen - - - - When location information is not available the constant - NA is returned. Current value of this string - constant is ?. - - - - - Constructor - - The declaring type of the method that is - the stack boundary into the logging system for this call. - - - Initializes a new instance of the - class based on the current thread. - - - - - - Constructor - - The fully qualified class name. - The method name. - The file name. - The line number of the method within the file. - - - Initializes a new instance of the - class with the specified data. - - - - - - Gets the fully qualified class name of the caller making the logging - request. - - - The fully qualified class name of the caller making the logging - request. - - - - Gets the fully qualified class name of the caller making the logging - request. - - - - - - Gets the file name of the caller. - - - The file name of the caller. - - - - Gets the file name of the caller. - - - - - - Gets the line number of the caller. - - - The line number of the caller. - - - - Gets the line number of the caller. - - - - - - Gets the method name of the caller. - - - The method name of the caller. - - - - Gets the method name of the caller. - - - - - - Gets all available caller information - - - All available caller information, in the format - fully.qualified.classname.of.caller.methodName(Filename:line) - - - - Gets all available caller information, in the format - fully.qualified.classname.of.caller.methodName(Filename:line) - - - - - - Static manager that controls the creation of repositories - - - - Static manager that controls the creation of repositories - - - This class is used by the wrapper managers (e.g. ) - to provide access to the objects. - - - This manager also holds the that is used to - lookup and create repositories. The selector can be set either programmatically using - the property, or by setting the log4net.RepositorySelector - AppSetting in the applications config file to the fully qualified type name of the - selector to use. - - - Nicko Cadell - Gert Driesen - - - - Private constructor to prevent instances. Only static methods should be used. - - - - Private constructor to prevent instances. Only static methods should be used. - - - - - - Hook the shutdown event - - - - On the full .NET runtime, the static constructor hooks up the - AppDomain.ProcessExit and AppDomain.DomainUnload> events. - These are used to shutdown the log4net system as the application exits. - - - - - - Register for ProcessExit and DomainUnload events on the AppDomain - - - - This needs to be in a separate method because the events make - a LinkDemand for the ControlAppDomain SecurityPermission. Because - this is a LinkDemand it is demanded at JIT time. Therefore we cannot - catch the exception in the method itself, we have to catch it in the - caller. - - - - - - Return the default instance. - - the repository to lookup in - Return the default instance - - - Gets the for the repository specified - by the argument. - - - - - - Returns the default instance. - - The assembly to use to lookup the repository. - The default instance. - - - - Return the default instance. - - the repository to lookup in - Return the default instance - - - Gets the for the repository specified - by the argument. - - - - - - Returns the default instance. - - The assembly to use to lookup the repository. - The default instance. - - - Returns the default instance. - - - - - - Returns the named logger if it exists. - - The repository to lookup in. - The fully qualified logger name to look for. - - The logger found, or null if the named logger does not exist in the - specified repository. - - - - If the named logger exists (in the specified repository) then it - returns a reference to the logger, otherwise it returns - null. - - - - - - Returns the named logger if it exists. - - The assembly to use to lookup the repository. - The fully qualified logger name to look for. - - The logger found, or null if the named logger does not exist in the - specified assembly's repository. - - - - If the named logger exists (in the specified assembly's repository) then it - returns a reference to the logger, otherwise it returns - null. - - - - - - Returns all the currently defined loggers in the specified repository. - - The repository to lookup in. - All the defined loggers. - - - The root logger is not included in the returned array. - - - - - - Returns all the currently defined loggers in the specified assembly's repository. - - The assembly to use to lookup the repository. - All the defined loggers. - - - The root logger is not included in the returned array. - - - - - - Retrieves or creates a named logger. - - The repository to lookup in. - The name of the logger to retrieve. - The logger with the name specified. - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - - - - Retrieves or creates a named logger. - - The assembly to use to lookup the repository. - The name of the logger to retrieve. - The logger with the name specified. - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - - - - Shorthand for . - - The repository to lookup in. - The of which the fullname will be used as the name of the logger to retrieve. - The logger with the name specified. - - - Gets the logger for the fully qualified name of the type specified. - - - - - - Shorthand for . - - the assembly to use to lookup the repository - The of which the fullname will be used as the name of the logger to retrieve. - The logger with the name specified. - - - Gets the logger for the fully qualified name of the type specified. - - - - - - Shuts down the log4net system. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in all the - default repositories. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - The repository to shutdown. - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository for the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - The assembly to use to lookup the repository. - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository for the repository. The repository is looked up using - the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Resets all values contained in this repository instance to their defaults. - - The repository to reset. - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - - - - Resets all values contained in this repository instance to their defaults. - - The assembly to use to lookup the repository to reset. - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - - - - Creates a repository with the specified name. - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name. - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The name must be unique. Repositories cannot be redefined. - An Exception will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The name must be unique. Repositories cannot be redefined. - An Exception will be thrown if the repository already exists. - - - The specified repository already exists. - - - - Creates a repository for the specified assembly and repository type. - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - - - - Creates a repository for the specified assembly and repository type. - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - - - - Gets an array of all currently defined repositories. - - An array of all the known objects. - - - Gets an array of all currently defined repositories. - - - - - - Internal method to get pertinent version info. - - A string of version info. - - - - Called when the event fires - - the that is exiting - null - - - Called when the event fires. - - - When the event is triggered the log4net system is . - - - - - - Called when the event fires - - the that is exiting - null - - - Called when the event fires. - - - When the event is triggered the log4net system is . - - - - - - Initialize the default repository selector - - - - - Gets or sets the repository selector used by the . - - - The repository selector used by the . - - - - The repository selector () is used by - the to create and select repositories - (). - - - The caller to supplies either a string name - or an assembly (if not supplied the assembly is inferred using - ). - - - This context is used by the selector to lookup a specific repository. - - - For the full .NET Framework, the default repository is DefaultRepositorySelector; - for the .NET Compact Framework CompactRepositorySelector is the default - repository. - - - - - - Implementation of the interface. - - - - This class should be used as the base for all wrapper implementations. - - - Nicko Cadell - Gert Driesen - - - - Constructs a new wrapper for the specified logger. - - The logger to wrap. - - - Constructs a new wrapper for the specified logger. - - - - - - The logger that this object is wrapping - - - - - Gets the implementation behind this wrapper object. - - - The object that this object is implementing. - - - - The Logger object may not be the same object as this object - because of logger decorators. - - - This gets the actual underlying objects that is used to process - the log events. - - - - - - Portable data structure used by - - - - Portable data structure used by - - - Nicko Cadell - - - - The logger name. - - - - The logger name. - - - - - - Level of logging event. - - - - Level of logging event. Level cannot be Serializable - because it is a flyweight. Due to its special serialization it - cannot be declared final either. - - - - - - The application supplied message. - - - - The application supplied message of logging event. - - - - - - The name of thread - - - - The name of thread in which this logging event was generated - - - - - - The time the event was logged - - - - The TimeStamp is stored in the local time zone for this computer. - - - - - - Location information for the caller. - - - - Location information for the caller. - - - - - - String representation of the user - - - - String representation of the user's windows name, - like DOMAIN\username - - - - - - String representation of the identity. - - - - String representation of the current thread's principal identity. - - - - - - The string representation of the exception - - - - The string representation of the exception - - - - - - String representation of the AppDomain. - - - - String representation of the AppDomain. - - - - - - Additional event specific properties - - - - A logger or an appender may attach additional - properties to specific events. These properties - have a string key and an object value. - - - - - - Flags passed to the property - - - - Flags passed to the property - - - Nicko Cadell - - - - Fix the MDC - - - - - Fix the NDC - - - - - Fix the rendered message - - - - - Fix the thread name - - - - - Fix the callers location information - - - CAUTION: Very slow to generate - - - - - Fix the callers windows user name - - - CAUTION: Slow to generate - - - - - Fix the domain friendly name - - - - - Fix the callers principal name - - - CAUTION: May be slow to generate - - - - - Fix the exception text - - - - - Fix the event properties - - - - - No fields fixed - - - - - All fields fixed - - - - - Partial fields fixed - - - - This set of partial fields gives good performance. The following fields are fixed: - - - - - - - - - - - - - The internal representation of logging events. - - - - When an affirmative decision is made to log then a - instance is created. This instance - is passed around to the different log4net components. - - - This class is of concern to those wishing to extend log4net. - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - for incurred by calling but it - is essential to maintaining data consistency. - - - Nicko Cadell - Gert Driesen - Douglas de la Torre - Daniel Cazzulino - - - - The key into the Properties map for the host name value. - - - - - The key into the Properties map for the thread identity value. - - - - - The key into the Properties map for the user name value. - - - - - Initializes a new instance of the class - from the supplied parameters. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - The name of the logger of this event. - The level of this event. - The message of this event. - The exception for this event. - - - Except , and , - all fields of LoggingEvent are filled when actually needed. Call - to cache all data locally - to prevent inconsistencies. - - This method is called by the log4net framework - to create a logging event. - - - - - - Initializes a new instance of the class - using specific data. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - Data used to initialize the logging event. - The fields in the struct that have already been fixed. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - The parameter should be used to specify which fields in the - struct have been preset. Fields not specified in the - will be captured from the environment if requested or fixed. - - - - - - Initializes a new instance of the class - using specific data. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The repository this event is logged in. - Data used to initialize the logging event. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - This constructor sets this objects flags to , - this assumes that all the data relating to this event is passed in via the - parameter and no other data should be captured from the environment. - - - - - - Initializes a new instance of the class - using specific data. - - Data used to initialize the logging event. - - - This constructor is provided to allow a - to be created independently of the log4net framework. This can - be useful if you require a custom serialization scheme. - - - Use the method to obtain an - instance of the class. - - - This constructor sets this objects flags to , - this assumes that all the data relating to this event is passed in via the - parameter and no other data should be captured from the environment. - - - - - - Serialization constructor - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Ensure that the repository is set. - - the value for the repository - - - - Write the rendered message to a TextWriter - - the writer to write the message to - - - Unlike the property this method - does store the message data in the internal cache. Therefore - if called only once this method should be faster than the - property, however if the message is - to be accessed multiple times then the property will be more efficient. - - - - - - Serializes this object into the provided. - - The to populate with data. - The destination for this serialization. - - - The data in this event must be fixed before it can be serialized. - - - The method must be called during the - method call if this event - is to be used outside that method. - - - - - - Gets the portable data for this . - - The for this event. - - - A new can be constructed using a - instance. - - - Does a fix of the data - in the logging event before returning the event data. - - - - - - Gets the portable data for this . - - The set of data to ensure is fixed in the LoggingEventData - The for this event. - - - A new can be constructed using a - instance. - - - - - - Returns this event's exception's rendered using the - . - - - This event's exception's rendered using the . - - - - Obsolete. Use instead. - - - - - - Returns this event's exception's rendered using the - . - - - This event's exception's rendered using the . - - - - Returns this event's exception's rendered using the - . - - - - - - Fix instance fields that hold volatile data. - - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - incurred by calling but it - is essential to maintaining data consistency. - - - Calling is equivalent to - calling passing the parameter - false. - - - See for more - information. - - - - - - Fixes instance fields that hold volatile data. - - Set to true to not fix data that takes a long time to fix. - - - Some of the values in instances of - are considered volatile, that is the values are correct at the - time the event is delivered to appenders, but will not be consistent - at any time afterwards. If an event is to be stored and then processed - at a later time these volatile values must be fixed by calling - . There is a performance penalty - for incurred by calling but it - is essential to maintaining data consistency. - - - The param controls the data that - is fixed. Some of the data that can be fixed takes a long time to - generate, therefore if you do not require those settings to be fixed - they can be ignored by setting the param - to true. This setting will ignore the - and settings. - - - Set to false to ensure that all - settings are fixed. - - - - - - Fix the fields specified by the parameter - - the fields to fix - - - Only fields specified in the will be fixed. - Fields will not be fixed if they have previously been fixed. - It is not possible to 'unfix' a field. - - - - - - Lookup a composite property in this event - - the key for the property to lookup - the value for the property - - - This event has composite properties that combine together properties from - several different contexts in the following order: - - - this events properties - - This event has that can be set. These - properties are specific to this event only. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - - - Get all the composite properties in this event - - the containing all the properties - - - See for details of the composite properties - stored by the event. - - - This method returns a single containing all the - properties defined for this event. - - - - - - The internal logging event data. - - - - - The internal logging event data. - - - - - The internal logging event data. - - - - - The fully qualified Type of the calling - logger class in the stack frame (i.e. the declaring type of the method). - - - - - The application supplied message of logging event. - - - - - The exception that was thrown. - - - This is not serialized. The string representation - is serialized instead. - - - - - The repository that generated the logging event - - - This is not serialized. - - - - - The fix state for this event - - - These flags indicate which fields have been fixed. - Not serialized. - - - - - Indicated that the internal cache is updateable (ie not fixed) - - - This is a seperate flag to m_fixFlags as it allows incrementel fixing and simpler - changes in the caching strategy. - - - - - Gets the time when the current process started. - - - This is the time when this process started. - - - - The TimeStamp is stored in the local time zone for this computer. - - - Tries to get the start time for the current process. - Failing that it returns the time of the first call to - this property. - - - Note that AppDomains may be loaded and unloaded within the - same process without the process terminating and therefore - without the process start time being reset. - - - - - - Gets the of the logging event. - - - The of the logging event. - - - - Gets the of the logging event. - - - - - - Gets the time of the logging event. - - - The time of the logging event. - - - - The TimeStamp is stored in the local time zone for this computer. - - - - - - Gets the name of the logger that logged the event. - - - The name of the logger that logged the event. - - - - Gets the name of the logger that logged the event. - - - - - - Gets the location information for this logging event. - - - The location information for this logging event. - - - - The collected information is cached for future use. - - - See the class for more information on - supported frameworks and the different behavior in Debug and - Release builds. - - - - - - Gets the message object used to initialize this event. - - - The message object used to initialize this event. - - - - Gets the message object used to initialize this event. - Note that this event may not have a valid message object. - If the event is serialized the message object will not - be transferred. To get the text of the message the - property must be used - not this property. - - - If there is no defined message object for this event then - null will be returned. - - - - - - Gets the exception object used to initialize this event. - - - The exception object used to initialize this event. - - - - Gets the exception object used to initialize this event. - Note that this event may not have a valid exception object. - If the event is serialized the exception object will not - be transferred. To get the text of the exception the - method must be used - not this property. - - - If there is no defined exception object for this event then - null will be returned. - - - - - - The that this event was created in. - - - - The that this event was created in. - - - - - - Gets the message, rendered through the . - - - The message rendered through the . - - - - The collected information is cached for future use. - - - - - - Gets the name of the current thread. - - - The name of the current thread, or the thread ID when - the name is not available. - - - - The collected information is cached for future use. - - - - - - Gets the name of the current user. - - - The name of the current user, or NOT AVAILABLE when the - underlying runtime has no support for retrieving the name of the - current user. - - - - Calls WindowsIdentity.GetCurrent().Name to get the name of - the current windows user. - - - To improve performance, we could cache the string representation of - the name, and reuse that as long as the identity stayed constant. - Once the identity changed, we would need to re-assign and re-render - the string. - - - However, the WindowsIdentity.GetCurrent() call seems to - return different objects every time, so the current implementation - doesn't do this type of caching. - - - Timing for these operations: - - - - Method - Results - - - WindowsIdentity.GetCurrent() - 10000 loops, 00:00:00.2031250 seconds - - - WindowsIdentity.GetCurrent().Name - 10000 loops, 00:00:08.0468750 seconds - - - - This means we could speed things up almost 40 times by caching the - value of the WindowsIdentity.GetCurrent().Name property, since - this takes (8.04-0.20) = 7.84375 seconds. - - - - - - Gets the identity of the current thread principal. - - - The string name of the identity of the current thread principal. - - - - Calls System.Threading.Thread.CurrentPrincipal.Identity.Name to get - the name of the current thread principal. - - - - - - Gets the AppDomain friendly name. - - - The AppDomain friendly name. - - - - Gets the AppDomain friendly name. - - - - - - Additional event specific properties. - - - Additional event specific properties. - - - - A logger or an appender may attach additional - properties to specific events. These properties - have a string key and an object value. - - - This property is for events that have been added directly to - this event. The aggregate properties (which include these - event properties) can be retrieved using - and . - - - Once the properties have been fixed this property - returns the combined cached properties. This ensures that updates to - this property are always reflected in the underlying storage. When - returning the combined properties there may be more keys in the - Dictionary than expected. - - - - - - The fixed fields in this event - - - The set of fields that are fixed in this event - - - - Fields will not be fixed if they have previously been fixed. - It is not possible to 'unfix' a field. - - - - - - Implementation of wrapper interface. - - - - This implementation of the interface - forwards to the held by the base class. - - - This logger has methods to allow the caller to log at the following - levels: - - - - DEBUG - - The and methods log messages - at the DEBUG level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - INFO - - The and methods log messages - at the INFO level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - WARN - - The and methods log messages - at the WARN level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - ERROR - - The and methods log messages - at the ERROR level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - FATAL - - The and methods log messages - at the FATAL level. That is the level with that name defined in the - repositories . The default value - for this level is . The - property tests if this level is enabled for logging. - - - - - The values for these levels and their semantic meanings can be changed by - configuring the for the repository. - - - Nicko Cadell - Gert Driesen - - - - The ILog interface is use by application to log messages into - the log4net framework. - - - - Use the to obtain logger instances - that implement this interface. The - static method is used to get logger instances. - - - This class contains methods for logging at different levels and also - has properties for determining if those logging levels are - enabled in the current configuration. - - - This interface can be implemented in different ways. This documentation - specifies reasonable behavior that a caller can expect from the actual - implementation, however different implementations reserve the right to - do things differently. - - - Simple example of logging messages - - ILog log = LogManager.GetLogger("application-log"); - - log.Info("Application Start"); - log.Debug("This is a debug message"); - - if (log.IsDebugEnabled) - { - log.Debug("This is another debug message"); - } - - - - - Nicko Cadell - Gert Driesen - - - Log a message object with the level. - - Log a message object with the level. - - The message object to log. - - - This method first checks if this logger is DEBUG - enabled by comparing the level of this logger with the - level. If this logger is - DEBUG enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of - the additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Logs a message object with the level. - - - - This method first checks if this logger is INFO - enabled by comparing the level of this logger with the - level. If this logger is - INFO enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Logs a message object with the INFO level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Log a message object with the level. - - - - This method first checks if this logger is WARN - enabled by comparing the level of this logger with the - level. If this logger is - WARN enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Logs a message object with the level. - - The message object to log. - - - This method first checks if this logger is ERROR - enabled by comparing the level of this logger with the - level. If this logger is - ERROR enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - Log a message object with the level. - - Log a message object with the level. - - - - This method first checks if this logger is FATAL - enabled by comparing the level of this logger with the - level. If this logger is - FATAL enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - The message object to log. - - - - - - Log a message object with the level including - the stack trace of the passed - as a parameter. - - The message object to log. - The exception to log, including its stack trace. - - - See the form for more detailed information. - - - - - - - Log a formatted message string with the level. - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Logs a formatted message string with the level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the String.Format method. See - for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - - This function is intended to lessen the computational cost of - disabled log debug statements. - - For some ILog interface log, when you write: - - log.Debug("This is entry number: " + i ); - - - You incur the cost constructing the message, string construction and concatenation in - this case, regardless of whether the message is logged or not. - - - If you are worried about speed (who isn't), then you should write: - - - if (log.IsDebugEnabled) - { - log.Debug("This is entry number: " + i ); - } - - - This way you will not incur the cost of parameter - construction if debugging is disabled for log. On - the other hand, if the log is debug enabled, you - will incur the cost of evaluating whether the logger is debug - enabled twice. Once in and once in - the . This is an insignificant overhead - since evaluating a logger takes about 1% of the time it - takes to actually log. This is the preferred style of logging. - - Alternatively if your logger is available statically then the is debug - enabled state can be stored in a static variable like this: - - - private static readonly bool isDebugEnabled = log.IsDebugEnabled; - - - Then when you come to log you can write: - - - if (isDebugEnabled) - { - log.Debug("This is entry number: " + i ); - } - - - This way the debug enabled state is only queried once - when the class is loaded. Using a private static readonly - variable is the most efficient because it is a run time constant - and can be heavily optimized by the JIT compiler. - - - Of course if you use a static readonly variable to - hold the enabled state of the logger then you cannot - change the enabled state at runtime to vary the logging - that is produced. You have to decide if you need absolute - speed or runtime flexibility. - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Checks if this logger is enabled for the level. - - - true if this logger is enabled for events, false otherwise. - - - For more information see . - - - - - - - - Construct a new wrapper for the specified logger. - - The logger to wrap. - - - Construct a new wrapper for the specified logger. - - - - - - Virtual method called when the configuration of the repository changes - - the repository holding the levels - - - Virtual method called when the configuration of the repository changes - - - - - - Logs a message object with the DEBUG level. - - The message object to log. - - - This method first checks if this logger is DEBUG - enabled by comparing the level of this logger with the - DEBUG level. If this logger is - DEBUG enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the DEBUG level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the DEBUG level including - the stack trace of the passed - as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the DEBUG level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the INFO level. - - The message object to log. - - - This method first checks if this logger is INFO - enabled by comparing the level of this logger with the - INFO level. If this logger is - INFO enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger - and also higher in the hierarchy depending on the value of - the additivity flag. - - - WARNING Note that passing an - to this method will print the name of the - but no stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the INFO level. - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the INFO level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the INFO level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the WARN level. - - the message object to log - - - This method first checks if this logger is WARN - enabled by comparing the level of this logger with the - WARN level. If this logger is - WARN enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the WARN level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the WARN level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the WARN level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the ERROR level. - - The message object to log. - - - This method first checks if this logger is ERROR - enabled by comparing the level of this logger with the - ERROR level. If this logger is - ERROR enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the ERROR level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the ERROR level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the ERROR level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a message object with the FATAL level. - - The message object to log. - - - This method first checks if this logger is FATAL - enabled by comparing the level of this logger with the - FATAL level. If this logger is - FATAL enabled, then it converts the message object - (passed as parameter) to a string by invoking the appropriate - . It then - proceeds to call all the registered appenders in this logger and - also higher in the hierarchy depending on the value of the - additivity flag. - - - WARNING Note that passing an to this - method will print the name of the but no - stack trace. To print a stack trace use the - form instead. - - - - - - Logs a message object with the FATAL level - - The message object to log. - The exception to log, including its stack trace. - - - Logs a message object with the FATAL level including - the stack trace of the - passed as a parameter. - - - See the form for more detailed information. - - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - A String containing zero or more format items - An Object to format - An Object to format - An Object to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - The string is formatted using the - format provider. To specify a localized provider use the - method. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Logs a formatted message string with the FATAL level. - - An that supplies culture-specific formatting information - A String containing zero or more format items - An Object array containing zero or more objects to format - - - The message is formatted using the method. See - String.Format for details of the syntax of the format string and the behavior - of the formatting. - - - This method does not take an object to include in the - log event. To pass an use one of the - methods instead. - - - - - - Event handler for the event - - the repository - Empty - - - - The fully qualified name of this declaring type not the type of any subclass. - - - - - Checks if this logger is enabled for the DEBUG - level. - - - true if this logger is enabled for DEBUG events, - false otherwise. - - - - This function is intended to lessen the computational cost of - disabled log debug statements. - - - For some log Logger object, when you write: - - - log.Debug("This is entry number: " + i ); - - - You incur the cost constructing the message, concatenation in - this case, regardless of whether the message is logged or not. - - - If you are worried about speed, then you should write: - - - if (log.IsDebugEnabled()) - { - log.Debug("This is entry number: " + i ); - } - - - This way you will not incur the cost of parameter - construction if debugging is disabled for log. On - the other hand, if the log is debug enabled, you - will incur the cost of evaluating whether the logger is debug - enabled twice. Once in IsDebugEnabled and once in - the Debug. This is an insignificant overhead - since evaluating a logger takes about 1% of the time it - takes to actually log. - - - - - - Checks if this logger is enabled for the INFO level. - - - true if this logger is enabled for INFO events, - false otherwise. - - - - See for more information and examples - of using this method. - - - - - - - Checks if this logger is enabled for the WARN level. - - - true if this logger is enabled for WARN events, - false otherwise. - - - - See for more information and examples - of using this method. - - - - - - - Checks if this logger is enabled for the ERROR level. - - - true if this logger is enabled for ERROR events, - false otherwise. - - - - See for more information and examples of using this method. - - - - - - - Checks if this logger is enabled for the FATAL level. - - - true if this logger is enabled for FATAL events, - false otherwise. - - - - See for more information and examples of using this method. - - - - - - - A SecurityContext used by log4net when interacting with protected resources - - - - A SecurityContext used by log4net when interacting with protected resources - for example with operating system services. This can be used to impersonate - a principal that has been granted privileges on the system resources. - - - Nicko Cadell - - - - Impersonate this SecurityContext - - State supplied by the caller - An instance that will - revoke the impersonation of this SecurityContext, or null - - - Impersonate this security context. Further calls on the current - thread should now be made in the security context provided - by this object. When the result - method is called the security - context of the thread should be reverted to the state it was in - before was called. - - - - - - The providers default instances. - - - - A configured component that interacts with potentially protected system - resources uses a to provide the elevated - privileges required. If the object has - been not been explicitly provided to the component then the component - will request one from this . - - - By default the is - an instance of which returns only - objects. This is a reasonable default - where the privileges required are not know by the system. - - - This default behavior can be overridden by subclassing the - and overriding the method to return - the desired objects. The default provider - can be replaced by programmatically setting the value of the - property. - - - An alternative is to use the log4net.Config.SecurityContextProviderAttribute - This attribute can be applied to an assembly in the same way as the - log4net.Config.XmlConfiguratorAttribute". The attribute takes - the type to use as the as an argument. - - - Nicko Cadell - - - - The default provider - - - - - Protected default constructor to allow subclassing - - - - Protected default constructor to allow subclassing - - - - - - Create a SecurityContext for a consumer - - The consumer requesting the SecurityContext - An impersonation context - - - The default implementation is to return a . - - - Subclasses should override this method to provide their own - behavior. - - - - - - Gets or sets the default SecurityContextProvider - - - The default SecurityContextProvider - - - - The default provider is used by configured components that - require a and have not had one - given to them. - - - By default this is an instance of - that returns objects. - - - The default provider can be set programmatically by setting - the value of this property to a sub class of - that has the desired behavior. - - - - - - Delegate used to handle creation of new wrappers. - - The logger to wrap in a wrapper. - - - Delegate used to handle creation of new wrappers. This delegate - is called from the - method to construct the wrapper for the specified logger. - - - The delegate to use is supplied to the - constructor. - - - - - - Maps between logger objects and wrapper objects. - - - - This class maintains a mapping between objects and - objects. Use the method to - lookup the for the specified . - - - New wrapper instances are created by the - method. The default behavior is for this method to delegate construction - of the wrapper to the delegate supplied - to the constructor. This allows specialization of the behavior without - requiring subclassing of this type. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the - - The handler to use to create the wrapper objects. - - - Initializes a new instance of the class with - the specified handler to create the wrapper objects. - - - - - - Gets the wrapper object for the specified logger. - - The wrapper object for the specified logger - - - If the logger is null then the corresponding wrapper is null. - - - Looks up the wrapper it it has previously been requested and - returns it. If the wrapper has never been requested before then - the virtual method is - called. - - - - - - Creates the wrapper object for the specified logger. - - The logger to wrap in a wrapper. - The wrapper object for the logger. - - - This implementation uses the - passed to the constructor to create the wrapper. This method - can be overridden in a subclass. - - - - - - Called when a monitored repository shutdown event is received. - - The that is shutting down - - - This method is called when a that this - is holding loggers for has signaled its shutdown - event . The default - behavior of this method is to release the references to the loggers - and their wrappers generated for this repository. - - - - - - Event handler for repository shutdown event. - - The sender of the event. - The event args. - - - - Map of logger repositories to hashtables of ILogger to ILoggerWrapper mappings - - - - - The handler to use to create the extension wrapper objects. - - - - - Internal reference to the delegate used to register for repository shutdown events. - - - - - Gets the map of logger repositories. - - - Map of logger repositories. - - - - Gets the hashtable that is keyed on . The - values are hashtables keyed on with the - value being the corresponding . - - - - - - Formats a as "HH:mm:ss,fff". - - - - Formats a in the format "HH:mm:ss,fff" for example, "15:49:37,459". - - - Nicko Cadell - Gert Driesen - - - - Render a as a string. - - - - Interface to abstract the rendering of a - instance into a string. - - - The method is used to render the - date to a text writer. - - - Nicko Cadell - Gert Driesen - - - - Formats the specified date as a string. - - The date to format. - The writer to write to. - - - Format the as a string and write it - to the provided. - - - - - - String constant used to specify AbsoluteTimeDateFormat in layouts. Current value is ABSOLUTE. - - - - - String constant used to specify DateTimeDateFormat in layouts. Current value is DATE. - - - - - String constant used to specify ISO8601DateFormat in layouts. Current value is ISO8601. - - - - - Renders the date into a string. Format is "HH:mm:ss". - - The date to render into a string. - The string builder to write to. - - - Subclasses should override this method to render the date - into a string using a precision up to the second. This method - will be called at most once per second and the result will be - reused if it is needed again during the same second. - - - - - - Renders the date into a string. Format is "HH:mm:ss,fff". - - The date to render into a string. - The writer to write to. - - - Uses the method to generate the - time string up to the seconds and then appends the current - milliseconds. The results from are - cached and is called at most once - per second. - - - Sub classes should override - rather than . - - - - - - Last stored time with precision up to the second. - - - - - Last stored time with precision up to the second, formatted - as a string. - - - - - Last stored time with precision up to the second, formatted - as a string. - - - - - Formats a as "dd MMM yyyy HH:mm:ss,fff" - - - - Formats a in the format - "dd MMM yyyy HH:mm:ss,fff" for example, - "06 Nov 1994 15:49:37,459". - - - Nicko Cadell - Gert Driesen - Angelika Schnagl - - - - Default constructor. - - - - Initializes a new instance of the class. - - - - - - Formats the date without the milliseconds part - - The date to format. - The string builder to write to. - - - Formats a DateTime in the format "dd MMM yyyy HH:mm:ss" - for example, "06 Nov 1994 15:49:37". - - - The base class will append the ",fff" milliseconds section. - This method will only be called at most once per second. - - - - - - The format info for the invariant culture. - - - - - Formats the as "yyyy-MM-dd HH:mm:ss,fff". - - - - Formats the specified as a string: "yyyy-MM-dd HH:mm:ss,fff". - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Formats the date without the milliseconds part - - The date to format. - The string builder to write to. - - - Formats the date specified as a string: "yyyy-MM-dd HH:mm:ss". - - - The base class will append the ",fff" milliseconds section. - This method will only be called at most once per second. - - - - - - Formats the using the method. - - - - Formats the using the method. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The format string. - - - Initializes a new instance of the class - with the specified format string. - - - The format string must be compatible with the options - that can be supplied to . - - - - - - Formats the date using . - - The date to convert to a string. - The writer to write to. - - - Uses the date format string supplied to the constructor to call - the method to format the date. - - - - - - The format string used to format the . - - - - The format string must be compatible with the options - that can be supplied to . - - - - - - This filter drops all . - - - - You can add this filter to the end of a filter chain to - switch from the default "accept all unless instructed otherwise" - filtering behavior to a "deny all unless instructed otherwise" - behavior. - - - Nicko Cadell - Gert Driesen - - - - Subclass this type to implement customized logging event filtering - - - - Users should extend this class to implement customized logging - event filtering. Note that and - , the parent class of all standard - appenders, have built-in filtering rules. It is suggested that you - first use and understand the built-in rules before rushing to write - your own custom filters. - - - This abstract class assumes and also imposes that filters be - organized in a linear chain. The - method of each filter is called sequentially, in the order of their - addition to the chain. - - - The method must return one - of the integer constants , - or . - - - If the value is returned, then the log event is dropped - immediately without consulting with the remaining filters. - - - If the value is returned, then the next filter - in the chain is consulted. If there are no more filters in the - chain, then the log event is logged. Thus, in the presence of no - filters, the default behavior is to log all logging events. - - - If the value is returned, then the log - event is logged without consulting the remaining filters. - - - The philosophy of log4net filters is largely inspired from the - Linux ipchains. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface to provide customized logging event filtering - - - - Users should implement this interface to implement customized logging - event filtering. Note that and - , the parent class of all standard - appenders, have built-in filtering rules. It is suggested that you - first use and understand the built-in rules before rushing to write - your own custom filters. - - - This abstract class assumes and also imposes that filters be - organized in a linear chain. The - method of each filter is called sequentially, in the order of their - addition to the chain. - - - The method must return one - of the integer constants , - or . - - - If the value is returned, then the log event is dropped - immediately without consulting with the remaining filters. - - - If the value is returned, then the next filter - in the chain is consulted. If there are no more filters in the - chain, then the log event is logged. Thus, in the presence of no - filters, the default behavior is to log all logging events. - - - If the value is returned, then the log - event is logged without consulting the remaining filters. - - - The philosophy of log4net filters is largely inspired from the - Linux ipchains. - - - Nicko Cadell - Gert Driesen - - - - Decide if the logging event should be logged through an appender. - - The LoggingEvent to decide upon - The decision of the filter - - - If the decision is , then the event will be - dropped. If the decision is , then the next - filter, if any, will be invoked. If the decision is then - the event will be logged without consulting with other filters in - the chain. - - - - - - Property to get and set the next filter - - - The next filter in the chain - - - - Filters are typically composed into chains. This property allows the next filter in - the chain to be accessed. - - - - - - Points to the next filter in the filter chain. - - - - See for more information. - - - - - - Initialize the filter with the options set - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Typically filter's options become active immediately on set, - however this method must still be called. - - - - - - Decide if the should be logged through an appender. - - The to decide upon - The decision of the filter - - - If the decision is , then the event will be - dropped. If the decision is , then the next - filter, if any, will be invoked. If the decision is then - the event will be logged without consulting with other filters in - the chain. - - - This method is marked abstract and must be implemented - in a subclass. - - - - - - Property to get and set the next filter - - - The next filter in the chain - - - - Filters are typically composed into chains. This property allows the next filter in - the chain to be accessed. - - - - - - Default constructor - - - - - Always returns the integer constant - - the LoggingEvent to filter - Always returns - - - Ignores the event being logged and just returns - . This can be used to change the default filter - chain behavior from to . This filter - should only be used as the last filter in the chain - as any further filters will be ignored! - - - - - - The return result from - - - - The return result from - - - - - - The log event must be dropped immediately without - consulting with the remaining filters, if any, in the chain. - - - - - This filter is neutral with respect to the log event. - The remaining filters, if any, should be consulted for a final decision. - - - - - The log event must be logged immediately without - consulting with the remaining filters, if any, in the chain. - - - - - This is a very simple filter based on matching. - - - - The filter admits two options and - . If there is an exact match between the value - of the option and the of the - , then the method returns in - case the option value is set - to true, if it is false then - is returned. If the does not match then - the result will be . - - - Nicko Cadell - Gert Driesen - - - - flag to indicate if the filter should on a match - - - - - the to match against - - - - - Default constructor - - - - - Tests if the of the logging event matches that of the filter - - the event to filter - see remarks - - - If the of the event matches the level of the - filter then the result of the function depends on the - value of . If it is true then - the function will return , it it is false then it - will return . If the does not match then - the result will be . - - - - - - when matching - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - The that the filter will match - - - - The level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - This is a simple filter based on matching. - - - - The filter admits three options and - that determine the range of priorities that are matched, and - . If there is a match between the range - of priorities and the of the , then the - method returns in case the - option value is set to true, if it is false - then is returned. If there is no match, is returned. - - - Nicko Cadell - Gert Driesen - - - - Flag to indicate the behavior when matching a - - - - - the minimum value to match - - - - - the maximum value to match - - - - - Default constructor - - - - - Check if the event should be logged. - - the logging event to check - see remarks - - - If the of the logging event is outside the range - matched by this filter then - is returned. If the is matched then the value of - is checked. If it is true then - is returned, otherwise - is returned. - - - - - - when matching and - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - Set the minimum matched - - - - The minimum level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - Sets the maximum matched - - - - The maximum level that this filter will attempt to match against the - level. If a match is found then - the result depends on the value of . - - - - - - Simple filter to match a string in the event's logger name. - - - - The works very similar to the . It admits two - options and . If the - of the starts - with the value of the option, then the - method returns in - case the option value is set to true, - if it is false then is returned. - - - Daniel Cazzulino - - - - Flag to indicate the behavior when we have a match - - - - - The logger name string to substring match against the event - - - - - Default constructor - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The rendered message is matched against the . - If the equals the beginning of - the incoming () - then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - when matching - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - The that the filter will match - - - - This filter will attempt to match this value against logger name in - the following way. The match will be done against the beginning of the - logger name (using ). The match is - case sensitive. If a match is found then - the result depends on the value of . - - - - - - Simple filter to match a keyed string in the - - - - Simple filter to match a keyed string in the - - - As the MDC has been replaced with layered properties the - should be used instead. - - - Nicko Cadell - Gert Driesen - - - - Simple filter to match a string an event property - - - - Simple filter to match a string in the value for a - specific event property - - - Nicko Cadell - - - - Simple filter to match a string in the rendered message - - - - Simple filter to match a string in the rendered message - - - Nicko Cadell - Gert Driesen - - - - Flag to indicate the behavior when we have a match - - - - - The string to substring match against the message - - - - - A string regex to match - - - - - A regex object to match (generated from m_stringRegexToMatch) - - - - - Default constructor - - - - - Initialize and precompile the Regex if required - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The rendered message is matched against the . - If the occurs as a substring within - the message then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - when matching or - - - - The property is a flag that determines - the behavior when a matching is found. If the - flag is set to true then the filter will the - logging event, otherwise it will the event. - - - The default is true i.e. to the event. - - - - - - Sets the static string to match - - - - The string that will be substring matched against - the rendered message. If the message contains this - string then the filter will match. If a match is found then - the result depends on the value of . - - - One of or - must be specified. - - - - - - Sets the regular expression to match - - - - The regular expression pattern that will be matched against - the rendered message. If the message matches this - pattern then the filter will match. If a match is found then - the result depends on the value of . - - - One of or - must be specified. - - - - - - The key to use to lookup the string from the event properties - - - - - Default constructor - - - - - Check if this filter should allow the event to be logged - - the event being logged - see remarks - - - The event property for the is matched against - the . - If the occurs as a substring within - the property value then a match will have occurred. If no match occurs - this function will return - allowing other filters to check the event. If a match occurs then - the value of is checked. If it is - true then is returned otherwise - is returned. - - - - - - The key to lookup in the event properties and then match against. - - - - The key name to use to lookup in the properties map of the - . The match will be performed against - the value of this property if it exists. - - - - - - Simple filter to match a string in the - - - - Simple filter to match a string in the - - - As the MDC has been replaced with named stacks stored in the - properties collections the should - be used instead. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Sets the to "NDC". - - - - - - Write the event appdomain name to the output - - - - Writes the to the output writer. - - - Daniel Cazzulino - Nicko Cadell - - - - Abstract class that provides the formatting functionality that - derived classes need. - - - Conversion specifiers in a conversion patterns are parsed to - individual PatternConverters. Each of which is responsible for - converting a logging event in a converter specific manner. - - Nicko Cadell - - - - Abstract class that provides the formatting functionality that - derived classes need. - - - - Conversion specifiers in a conversion patterns are parsed to - individual PatternConverters. Each of which is responsible for - converting a logging event in a converter specific manner. - - - Nicko Cadell - Gert Driesen - - - - Initial buffer size - - - - - Maximum buffer size before it is recycled - - - - - Protected constructor - - - - Initializes a new instance of the class. - - - - - - Evaluate this pattern converter and write the output to a writer. - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the appropriate way. - - - - - - Set the next pattern converter in the chains - - the pattern converter that should follow this converter in the chain - the next converter - - - The PatternConverter can merge with its neighbor during this method (or a sub class). - Therefore the return value may or may not be the value of the argument passed in. - - - - - - Write the pattern converter to the writer with appropriate formatting - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - This method calls to allow the subclass to perform - appropriate conversion of the pattern converter. If formatting options have - been specified via the then this method will - apply those formattings before writing the output. - - - - - - Fast space padding method. - - to which the spaces will be appended. - The number of spaces to be padded. - - - Fast space padding method. - - - - - - The option string to the converter - - - - - Write an dictionary to a - - the writer to write to - a to use for object conversion - the value to write to the writer - - - Writes the to a writer in the form: - - - {key1=value1, key2=value2, key3=value3} - - - If the specified - is not null then it is used to render the key and value to text, otherwise - the object's ToString method is called. - - - - - - Write an object to a - - the writer to write to - a to use for object conversion - the value to write to the writer - - - Writes the Object to a writer. If the specified - is not null then it is used to render the object to text, otherwise - the object's ToString method is called. - - - - - - Get the next pattern converter in the chain - - - the next pattern converter in the chain - - - - Get the next pattern converter in the chain - - - - - - Gets or sets the formatting info for this converter - - - The formatting info for this converter - - - - Gets or sets the formatting info for this converter - - - - - - Gets or sets the option value for this converter - - - The option for this converter - - - - Gets or sets the option value for this converter - - - - - - Initializes a new instance of the class. - - - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the correct way. - - that will receive the formatted result. - The on which the pattern converter should be executed. - - - - Derived pattern converters must override this method in order to - convert conversion specifiers in the correct way. - - that will receive the formatted result. - The state object on which the pattern converter should be executed. - - - - Flag indicating if this converter handles exceptions - - - false if this converter handles exceptions - - - - - Flag indicating if this converter handles the logging event exception - - false if this converter handles the logging event exception - - - If this converter handles the exception object contained within - , then this property should be set to - false. Otherwise, if the layout ignores the exception - object, then the property should be set to true. - - - Set this value to override a this default setting. The default - value is true, this converter does not handle the exception. - - - - - - Write the event appdomain name to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the output . - - - - - - Date pattern converter, uses a to format - the date of a . - - - - Render the to the writer as a string. - - - The value of the determines - the formatting of the date. The following values are allowed: - - - Option value - Output - - - ISO8601 - - Uses the formatter. - Formats using the "yyyy-MM-dd HH:mm:ss,fff" pattern. - - - - DATE - - Uses the formatter. - Formats using the "dd MMM yyyy HH:mm:ss,fff" for example, "06 Nov 1994 15:49:37,459". - - - - ABSOLUTE - - Uses the formatter. - Formats using the "HH:mm:ss,yyyy" for example, "15:49:37,459". - - - - other - - Any other pattern string uses the formatter. - This formatter passes the pattern string to the - method. - For details on valid patterns see - DateTimeFormatInfo Class. - - - - - - The is in the local time zone and is rendered in that zone. - To output the time in Universal time see . - - - Nicko Cadell - - - - The used to render the date to a string - - - - The used to render the date to a string - - - - - - Initialize the converter pattern based on the property. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Convert the pattern into the rendered message - - that will receive the formatted result. - the event being logged - - - Pass the to the - for it to render it to the writer. - - - The passed is in the local time zone. - - - - - - Write the exception text to the output - - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - - - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - Nicko Cadell - - - - Default constructor - - - - - Write the exception text to the output - - that will receive the formatted result. - the event being logged - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - - - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - - - - Writes the caller location file name to the output - - - - Writes the value of the for - the event to the output writer. - - - Nicko Cadell - - - - Write the caller location file name to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the for - the to the output . - - - - - - Write the caller location info to the output - - - - Writes the to the output writer. - - - Nicko Cadell - - - - Write the caller location info to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the output writer. - - - - - - Writes the event identity to the output - - - - Writes the value of the to - the output writer. - - - Daniel Cazzulino - Nicko Cadell - - - - Writes the event identity to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the - to - the output . - - - - - - Write the event level to the output - - - - Writes the display name of the event - to the writer. - - - Nicko Cadell - - - - Write the event level to the output - - that will receive the formatted result. - the event being logged - - - Writes the of the - to the . - - - - - - Write the caller location line number to the output - - - - Writes the value of the for - the event to the output writer. - - - Nicko Cadell - - - - Write the caller location line number to the output - - that will receive the formatted result. - the event being logged - - - Writes the value of the for - the to the output . - - - - - - Converter for logger name - - - - Outputs the of the event. - - - Nicko Cadell - - - - Converter to output and truncate '.' separated strings - - - - This abstract class supports truncating a '.' separated string - to show a specified number of elements from the right hand side. - This is used to truncate class names that are fully qualified. - - - Subclasses should override the method to - return the fully qualified string. - - - Nicko Cadell - - - - Initialize the converter - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Get the fully qualified string data - - the event being logged - the fully qualified name - - - Overridden by subclasses to get the fully qualified name before the - precision is applied to it. - - - Return the fully qualified '.' (dot/period) separated string. - - - - - - Convert the pattern to the rendered message - - that will receive the formatted result. - the event being logged - - Render the to the precision - specified by the property. - - - - - Gets the fully qualified name of the logger - - the event being logged - The fully qualified logger name - - - Returns the of the . - - - - - - Writes the event message to the output - - - - Uses the method - to write out the event message. - - - Nicko Cadell - - - - Writes the event message to the output - - that will receive the formatted result. - the event being logged - - - Uses the method - to write out the event message. - - - - - - Write the method name to the output - - - - Writes the caller location to - the output. - - - Nicko Cadell - - - - Write the method name to the output - - that will receive the formatted result. - the event being logged - - - Writes the caller location to - the output. - - - - - - Converter to include event NDC - - - - Outputs the value of the event property named NDC. - - - The should be used instead. - - - Nicko Cadell - - - - Write the event NDC to the output - - that will receive the formatted result. - the event being logged - - - As the thread context stacks are now stored in named event properties - this converter simply looks up the value of the NDC property. - - - The should be used instead. - - - - - - Property pattern converter - - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - Nicko Cadell - - - - Write the property value to the output - - that will receive the formatted result. - the event being logged - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - - - - Converter to output the relative time of the event - - - - Converter to output the time of the event relative to the start of the program. - - - Nicko Cadell - - - - Write the relative time to the output - - that will receive the formatted result. - the event being logged - - - Writes out the relative time of the event in milliseconds. - That is the number of milliseconds between the event - and the . - - - - - - Helper method to get the time difference between two DateTime objects - - start time (in the current local time zone) - end time (in the current local time zone) - the time difference in milliseconds - - - - Converter to include event thread name - - - - Writes the to the output. - - - Nicko Cadell - - - - Write the ThreadName to the output - - that will receive the formatted result. - the event being logged - - - Writes the to the . - - - - - - Pattern converter for the class name - - - - Outputs the of the event. - - - Nicko Cadell - - - - Gets the fully qualified name of the class - - the event being logged - The fully qualified type name for the caller location - - - Returns the of the . - - - - - - Converter to include event user name - - Douglas de la Torre - Nicko Cadell - - - - Convert the pattern to the rendered message - - that will receive the formatted result. - the event being logged - - - - Write the TimeStamp to the output - - - - Date pattern converter, uses a to format - the date of a . - - - Uses a to format the - in Universal time. - - - See the for details on the date pattern syntax. - - - - Nicko Cadell - - - - Write the TimeStamp to the output - - that will receive the formatted result. - the event being logged - - - Pass the to the - for it to render it to the writer. - - - The passed is in the local time zone, this is converted - to Universal time before it is rendered. - - - - - - - A Layout that renders only the Exception text from the logging event - - - - A Layout that renders only the Exception text from the logging event. - - - This Layout should only be used with appenders that utilize multiple - layouts (e.g. ). - - - Nicko Cadell - Gert Driesen - - - - Extend this abstract class to create your own log layout format. - - - - This is the base implementation of the - interface. Most layout objects should extend this class. - - - - - - Subclasses must implement the - method. - - - Subclasses should set the in their default - constructor. - - - - Nicko Cadell - Gert Driesen - - - - Interface implemented by layout objects - - - - An object is used to format a - as text. The method is called by an - appender to transform the into a string. - - - The layout can also supply and - text that is appender before any events and after all the events respectively. - - - Nicko Cadell - Gert Driesen - - - - Implement this method to create your own layout format. - - The TextWriter to write the formatted event to - The event to format - - - This method is called by an appender to format - the as text and output to a writer. - - - If the caller does not have a and prefers the - event to be formatted as a then the following - code can be used to format the event into a . - - - StringWriter writer = new StringWriter(); - Layout.Format(writer, loggingEvent); - string formattedEvent = writer.ToString(); - - - - - - The content type output by this layout. - - The content type - - - The content type output by this layout. - - - This is a MIME type e.g. "text/plain". - - - - - - The header for the layout format. - - the layout header - - - The Header text will be appended before any logging events - are formatted and appended. - - - - - - The footer for the layout format. - - the layout footer - - - The Footer text will be appended after all the logging events - have been formatted and appended. - - - - - - Flag indicating if this layout handle exceptions - - false if this layout handles exceptions - - - If this layout handles the exception object contained within - , then the layout should return - false. Otherwise, if the layout ignores the exception - object, then the layout should return true. - - - - - - The header text - - - - See for more information. - - - - - - The footer text - - - - See for more information. - - - - - - Flag indicating if this layout handles exceptions - - - - false if this layout handles exceptions - - - - - - Empty default constructor - - - - Empty default constructor - - - - - - Activate component options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - This method must be implemented by the subclass. - - - - - - Implement this method to create your own layout format. - - The TextWriter to write the formatted event to - The event to format - - - This method is called by an appender to format - the as text. - - - - - - The content type output by this layout. - - The content type is "text/plain" - - - The content type output by this layout. - - - This base class uses the value "text/plain". - To change this value a subclass must override this - property. - - - - - - The header for the layout format. - - the layout header - - - The Header text will be appended before any logging events - are formatted and appended. - - - - - - The footer for the layout format. - - the layout footer - - - The Footer text will be appended after all the logging events - have been formatted and appended. - - - - - - Flag indicating if this layout handles exceptions - - false if this layout handles exceptions - - - If this layout handles the exception object contained within - , then the layout should return - false. Otherwise, if the layout ignores the exception - object, then the layout should return true. - - - Set this value to override a this default setting. The default - value is true, this layout does not handle the exception. - - - - - - Default constructor - - - - Constructs a ExceptionLayout - - - - - - Activate component options - - - - Part of the component activation - framework. - - - This method does nothing as options become effective immediately. - - - - - - Gets the exception text from the logging event - - The TextWriter to write the formatted event to - the event being logged - - - Write the exception string to the . - The exception string is retrieved from . - - - - - - Interface for raw layout objects - - - - Interface used to format a - to an object. - - - This interface should not be confused with the - interface. This interface is used in - only certain specialized situations where a raw object is - required rather than a formatted string. The - is not generally useful than this interface. - - - Nicko Cadell - Gert Driesen - - - - Implement this method to create your own layout format. - - The event to format - returns the formatted event - - - Implement this method to create your own layout format. - - - - - - Adapts any to a - - - - Where an is required this adapter - allows a to be specified. - - - Nicko Cadell - Gert Driesen - - - - The layout to adapt - - - - - Construct a new adapter - - the layout to adapt - - - Create the adapter for the specified . - - - - - - Format the logging event as an object. - - The event to format - returns the formatted event - - - Format the logging event as an object. - - - Uses the object supplied to - the constructor to perform the formatting. - - - - - - A flexible layout configurable with pattern string. - - - - The goal of this class is to a - as a string. The results - depend on the conversion pattern. - - - The conversion pattern is closely related to the conversion - pattern of the printf function in C. A conversion pattern is - composed of literal text and format control expressions called - conversion specifiers. - - - You are free to insert any literal text within the conversion - pattern. - - - Each conversion specifier starts with a percent sign (%) and is - followed by optional format modifiers and a conversion - pattern name. The conversion pattern name specifies the type of - data, e.g. logger, level, date, thread name. The format - modifiers control such things as field width, padding, left and - right justification. The following is a simple example. - - - Let the conversion pattern be "%-5level [%thread]: %message%newline" and assume - that the log4net environment was set to use a PatternLayout. Then the - statements - - - ILog log = LogManager.GetLogger(typeof(TestApp)); - log.Debug("Message 1"); - log.Warn("Message 2"); - - would yield the output - - DEBUG [main]: Message 1 - WARN [main]: Message 2 - - - Note that there is no explicit separator between text and - conversion specifiers. The pattern parser knows when it has reached - the end of a conversion specifier when it reads a conversion - character. In the example above the conversion specifier - %-5level means the level of the logging event should be left - justified to a width of five characters. - - - The recognized conversion pattern names are: - - - - Conversion Pattern Name - Effect - - - a - Equivalent to appdomain - - - appdomain - - Used to output the friendly name of the AppDomain where the - logging event was generated. - - - - c - Equivalent to logger - - - C - Equivalent to type - - - class - Equivalent to type - - - d - Equivalent to date - - - date - - - Used to output the date of the logging event in the local time zone. - To output the date in universal time use the %utcdate pattern. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %date{HH:mm:ss,fff} or - %date{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %date{ISO8601} or %date{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - exception - - - Used to output the exception passed in with the log message. - - - If an exception object is stored in the logging event - it will be rendered into the pattern output with a - trailing newline. - If there is no exception then nothing will be output - and no trailing newline will be appended. - It is typical to put a newline before the exception - and to have the exception as the last data in the pattern. - - - - - F - Equivalent to file - - - file - - - Used to output the file name where the logging request was - issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - identity - - - Used to output the user name for the currently active user - (Principal.Identity.Name). - - - WARNING Generating caller information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - - - l - Equivalent to location - - - L - Equivalent to line - - - location - - - Used to output location information of the caller which generated - the logging event. - - - The location information depends on the CLI implementation but - usually consists of the fully qualified name of the calling - method followed by the callers source the file name and line - number between parentheses. - - - The location information can be very useful. However, its - generation is extremely slow. Its use should be avoided - unless execution speed is not an issue. - - - See the note below on the availability of caller location information. - - - - - level - - - Used to output the level of the logging event. - - - - - line - - - Used to output the line number from where the logging request - was issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - logger - - - Used to output the logger of the logging event. The - logger conversion specifier can be optionally followed by - precision specifier, that is a decimal constant in - brackets. - - - If a precision specifier is given, then only the corresponding - number of right most components of the logger name will be - printed. By default the logger name is printed in full. - - - For example, for the logger name "a.b.c" the pattern - %logger{2} will output "b.c". - - - - - m - Equivalent to message - - - M - Equivalent to method - - - message - - - Used to output the application supplied message associated with - the logging event. - - - - - mdc - - - The MDC (old name for the ThreadContext.Properties) is now part of the - combined event properties. This pattern is supported for compatibility - but is equivalent to property. - - - - - method - - - Used to output the method name where the logging request was - issued. - - - WARNING Generating caller location information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - See the note below on the availability of caller location information. - - - - - n - Equivalent to newline - - - newline - - - Outputs the platform dependent line separator character or - characters. - - - This conversion pattern offers the same performance as using - non-portable line separator strings such as "\n", or "\r\n". - Thus, it is the preferred way of specifying a line separator. - - - - - ndc - - - Used to output the NDC (nested diagnostic context) associated - with the thread that generated the logging event. - - - - - p - Equivalent to level - - - P - Equivalent to property - - - properties - Equivalent to property - - - property - - - Used to output the an event specific property. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %property{user} would include the value - from the property that is keyed by the string 'user'. Each property value - that is to be included in the log must be specified separately. - Properties are added to events by loggers or appenders. By default - the log4net:HostName property is set to the name of machine on - which the event was originally logged. - - - If no key is specified, e.g. %property then all the keys and their - values are printed in a comma separated list. - - - The properties of an event are combined from a number of different - contexts. These are listed below in the order in which they are searched. - - - - the event properties - - The event has that can be set. These - properties are specific to this event only. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - - r - Equivalent to timestamp - - - t - Equivalent to thread - - - timestamp - - - Used to output the number of milliseconds elapsed since the start - of the application until the creation of the logging event. - - - - - thread - - - Used to output the name of the thread that generated the - logging event. Uses the thread number if no name is available. - - - - - type - - - Used to output the fully qualified type name of the caller - issuing the logging request. This conversion specifier - can be optionally followed by precision specifier, that - is a decimal constant in brackets. - - - If a precision specifier is given, then only the corresponding - number of right most components of the class name will be - printed. By default the class name is output in fully qualified form. - - - For example, for the class name "log4net.Layout.PatternLayout", the - pattern %type{1} will output "PatternLayout". - - - WARNING Generating the caller class information is - slow. Thus, its use should be avoided unless execution speed is - not an issue. - - - See the note below on the availability of caller location information. - - - - - u - Equivalent to identity - - - username - - - Used to output the WindowsIdentity for the currently - active user. - - - WARNING Generating caller WindowsIdentity information is - extremely slow. Its use should be avoided unless execution speed - is not an issue. - - - - - utcdate - - - Used to output the date of the logging event in universal time. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %utcdate{HH:mm:ss,fff} or - %utcdate{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %utcdate{ISO8601} or %utcdate{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - w - Equivalent to username - - - x - Equivalent to ndc - - - X - Equivalent to mdc - - - % - - - The sequence %% outputs a single percent sign. - - - - - - The single letter patterns are deprecated in favor of the - longer more descriptive pattern names. - - - By default the relevant information is output as is. However, - with the aid of format modifiers it is possible to change the - minimum field width, the maximum field width and justification. - - - The optional format modifier is placed between the percent sign - and the conversion pattern name. - - - The first optional format modifier is the left justification - flag which is just the minus (-) character. Then comes the - optional minimum field width modifier. This is a decimal - constant that represents the minimum number of characters to - output. If the data item requires fewer characters, it is padded on - either the left or the right until the minimum width is - reached. The default is to pad on the left (right justify) but you - can specify right padding with the left justification flag. The - padding character is space. If the data item is larger than the - minimum field width, the field is expanded to accommodate the - data. The value is never truncated. - - - This behavior can be changed using the maximum field - width modifier which is designated by a period followed by a - decimal constant. If the data item is longer than the maximum - field, then the extra characters are removed from the - beginning of the data item and not from the end. For - example, it the maximum field width is eight and the data item is - ten characters long, then the first two characters of the data item - are dropped. This behavior deviates from the printf function in C - where truncation is done from the end. - - - Below are various format modifier examples for the logger - conversion specifier. - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Format modifierleft justifyminimum widthmaximum widthcomment
%20loggerfalse20none - - Left pad with spaces if the logger name is less than 20 - characters long. - -
%-20loggertrue20none - - Right pad with spaces if the logger - name is less than 20 characters long. - -
%.30loggerNAnone30 - - Truncate from the beginning if the logger - name is longer than 30 characters. - -
%20.30loggerfalse2030 - - Left pad with spaces if the logger name is shorter than 20 - characters. However, if logger name is longer than 30 characters, - then truncate from the beginning. - -
%-20.30loggertrue2030 - - Right pad with spaces if the logger name is shorter than 20 - characters. However, if logger name is longer than 30 characters, - then truncate from the beginning. - -
-
- - Note about caller location information.
- The following patterns %type %file %line %method %location %class %C %F %L %l %M - all generate caller location information. - Location information uses the System.Diagnostics.StackTrace class to generate - a call stack. The caller's information is then extracted from this stack. -
- - - The System.Diagnostics.StackTrace class is not supported on the - .NET Compact Framework 1.0 therefore caller location information is not - available on that framework. - - - - - The System.Diagnostics.StackTrace class has this to say about Release builds: - - - "StackTrace information will be most informative with Debug build configurations. - By default, Debug builds include debug symbols, while Release builds do not. The - debug symbols contain most of the file, method name, line number, and column - information used in constructing StackFrame and StackTrace objects. StackTrace - might not report as many method calls as expected, due to code transformations - that occur during optimization." - - - This means that in a Release build the caller information may be incomplete or may - not exist at all! Therefore caller location information cannot be relied upon in a Release build. - - - - Additional pattern converters may be registered with a specific - instance using the method. - -
- - This is a more detailed pattern. - %timestamp [%thread] %level %logger %ndc - %message%newline - - - A similar pattern except that the relative time is - right padded if less than 6 digits, thread name is right padded if - less than 15 characters and truncated if longer and the logger - name is left padded if shorter than 30 characters and truncated if - longer. - %-6timestamp [%15.15thread] %-5level %30.30logger %ndc - %message%newline - - Nicko Cadell - Gert Driesen - Douglas de la Torre - Daniel Cazzulino -
- - - Default pattern string for log output. - - - - Default pattern string for log output. - Currently set to the string "%message%newline" - which just prints the application supplied message. - - - - - - A detailed conversion pattern - - - - A conversion pattern which includes Time, Thread, Logger, and Nested Context. - Current value is %timestamp [%thread] %level %logger %ndc - %message%newline. - - - - - - Internal map of converter identifiers to converter types. - - - - This static map is overridden by the m_converterRegistry instance map - - - - - - the pattern - - - - - the head of the pattern converter chain - - - - - patterns defined on this PatternLayout only - - - - - Initialize the global registry - - - - Defines the builtin global rules. - - - - - - Constructs a PatternLayout using the DefaultConversionPattern - - - - The default pattern just produces the application supplied message. - - - Note to Inheritors: This constructor calls the virtual method - . If you override this method be - aware that it will be called before your is called constructor. - - - As per the contract the - method must be called after the properties on this object have been - configured. - - - - - - Constructs a PatternLayout using the supplied conversion pattern - - the pattern to use - - - Note to Inheritors: This constructor calls the virtual method - . If you override this method be - aware that it will be called before your is called constructor. - - - When using this constructor the method - need not be called. This may not be the case when using a subclass. - - - - - - Create the pattern parser instance - - the pattern to parse - The that will format the event - - - Creates the used to parse the conversion string. Sets the - global and instance rules on the . - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a formatted string as specified by the conversion pattern. - - the event being logged - The TextWriter to write the formatted event to - - - Parse the using the patter format - specified in the property. - - - - - - Add a converter to this PatternLayout - - the converter info - - - This version of the method is used by the configurator. - Programmatic users should use the alternative method. - - - - - - Add a converter to this PatternLayout - - the name of the conversion pattern for this converter - the type of the converter - - - Add a named pattern converter to this instance. This - converter will be used in the formatting of the event. - This method must be called before . - - - The specified must extend the - type. - - - - - - The pattern formatting string - - - - The ConversionPattern option. This is the string which - controls formatting and consists of a mix of literal content and - conversion specifiers. - - - - - - Wrapper class used to map converter names to converter types - - - - Pattern converter info class used during configuration to - pass to the - method. - - - - - - default constructor - - - - - Gets or sets the name of the conversion pattern - - - - The name of the pattern in the format string - - - - - - Gets or sets the type of the converter - - - - The value specified must extend the - type. - - - - - - Type converter for the interface - - - - Used to convert objects to the interface. - Supports converting from the interface to - the interface using the . - - - Nicko Cadell - Gert Driesen - - - - Interface supported by type converters - - - - This interface supports conversion from arbitrary types - to a single target type. See . - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Test if the can be converted to the - type supported by this converter. - - - - - - Convert the source object to the type supported by this object - - the object to convert - the converted object - - - Converts the to the type supported - by this converter. - - - - - - Can the sourceType be converted to an - - the source to be to be converted - true if the source type can be converted to - - - Test if the can be converted to a - . Only is supported - as the . - - - - - - Convert the value to a object - - the value to convert - the object - - - Convert the object to a - object. If the object - is a then the - is used to adapt between the two interfaces, otherwise an - exception is thrown. - - - - - - Extract the value of a property from the - - - - Extract the value of a property from the - - - Nicko Cadell - - - - Constructs a RawPropertyLayout - - - - - Lookup the property for - - The event to format - returns property value - - - Looks up and returns the object value of the property - named . If there is no property defined - with than name then null will be returned. - - - - - - The name of the value to lookup in the LoggingEvent Properties collection. - - - Value to lookup in the LoggingEvent Properties collection - - - - String name of the property to lookup in the . - - - - - - Extract the date from the - - - - Extract the date from the - - - Nicko Cadell - Gert Driesen - - - - Constructs a RawTimeStampLayout - - - - - Gets the as a . - - The event to format - returns the time stamp - - - Gets the as a . - - - The time stamp is in local time. To format the time stamp - in universal time use . - - - - - - Extract the date from the - - - - Extract the date from the - - - Nicko Cadell - Gert Driesen - - - - Constructs a RawUtcTimeStampLayout - - - - - Gets the as a . - - The event to format - returns the time stamp - - - Gets the as a . - - - The time stamp is in universal time. To format the time stamp - in local time use . - - - - - - A very simple layout - - - - SimpleLayout consists of the level of the log statement, - followed by " - " and then the log message itself. For example, - - DEBUG - Hello world - - - - Nicko Cadell - Gert Driesen - - - - Constructs a SimpleLayout - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a simple formatted output. - - the event being logged - The TextWriter to write the formatted event to - - - Formats the event as the level of the even, - followed by " - " and then the log message itself. The - output is terminated by a newline. - - - - - - Layout that formats the log events as XML elements. - - - - The output of the consists of a series of - log4net:event elements. It does not output a complete well-formed XML - file. The output is designed to be included as an external entity - in a separate file to form a correct XML file. - - - For example, if abc is the name of the file where - the output goes, then a well-formed XML file would - be: - - - <?xml version="1.0" ?> - - <!DOCTYPE log4net:events SYSTEM "log4net-events.dtd" [<!ENTITY data SYSTEM "abc">]> - - <log4net:events version="1.2" xmlns:log4net="http://logging.apache.org/log4net/schemas/log4net-events-1.2> - &data; - </log4net:events> - - - This approach enforces the independence of the - and the appender where it is embedded. - - - The version attribute helps components to correctly - interpret output generated by . The value of - this attribute should be "1.2" for release 1.2 and later. - - - Alternatively the Header and Footer properties can be - configured to output the correct XML header, open tag and close tag. - When setting the Header and Footer properties it is essential - that the underlying data store not be appendable otherwise the data - will become invalid XML. - - - Nicko Cadell - Gert Driesen - - - - Layout that formats the log events as XML elements. - - - - This is an abstract class that must be subclassed by an implementation - to conform to a specific schema. - - - Deriving classes must implement the method. - - - Nicko Cadell - Gert Driesen - - - - Protected constructor to support subclasses - - - - Initializes a new instance of the class - with no location info. - - - - - - Protected constructor to support subclasses - - - - The parameter determines whether - location information will be output by the layout. If - is set to true, then the - file name and line number of the statement at the origin of the log - statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Produces a formatted string. - - The event being logged. - The TextWriter to write the formatted event to - - - Format the and write it to the . - - - This method creates an that writes to the - . The is passed - to the method. Subclasses should override the - method rather than this method. - - - - - - Does the actual writing of the XML. - - The writer to use to output the event to. - The event to write. - - - Subclasses should override this method to format - the as XML. - - - - - - Flag to indicate if location information should be included in - the XML events. - - - - - Writer adapter that ignores Close - - - - - The string to replace invalid chars with - - - - - Gets a value indicating whether to include location information in - the XML events. - - - true if location information should be included in the XML - events; otherwise, false. - - - - If is set to true, then the file - name and line number of the statement at the origin of the log - statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - The string to replace characters that can not be expressed in XML with. - - - Not all characters may be expressed in XML. This property contains the - string to replace those that can not with. This defaults to a ?. Set it - to the empty string to simply remove offending characters. For more - details on the allowed character ranges see http://www.w3.org/TR/REC-xml/#charsets - Character replacement will occur in the log message, the property names - and the property values. - - - - - - - Gets the content type output by this layout. - - - As this is the XML layout, the value is always "text/xml". - - - - As this is the XML layout, the value is always "text/xml". - - - - - - Constructs an XmlLayout - - - - - Constructs an XmlLayout. - - - - The LocationInfo option takes a boolean value. By - default, it is set to false which means there will be no location - information output by this layout. If the the option is set to - true, then the file name and line number of the statement - at the origin of the log statement will be output. - - - If you are embedding this layout within an SmtpAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Initialize layout options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - Builds a cache of the element names - - - - - - Does the actual writing of the XML. - - The writer to use to output the event to. - The event to write. - - - Override the base class method - to write the to the . - - - - - - The prefix to use for all generated element names - - - - - The prefix to use for all element names - - - - The default prefix is log4net. Set this property - to change the prefix. If the prefix is set to an empty string - then no prefix will be written. - - - - - - Set whether or not to base64 encode the message. - - - - By default the log message will be written as text to the xml - output. This can cause problems when the message contains binary - data. By setting this to true the contents of the message will be - base64 encoded. If this is set then invalid character replacement - (see ) will not be performed - on the log message. - - - - - - Set whether or not to base64 encode the property values. - - - - By default the properties will be written as text to the xml - output. This can cause problems when one or more properties contain - binary data. By setting this to true the values of the properties - will be base64 encoded. If this is set then invalid character replacement - (see ) will not be performed - on the property values. - - - - - - Layout that formats the log events as XML elements compatible with the log4j schema - - - - Formats the log events according to the http://logging.apache.org/log4j schema. - - - Nicko Cadell - - - - The 1st of January 1970 in UTC - - - - - Constructs an XMLLayoutSchemaLog4j - - - - - Constructs an XMLLayoutSchemaLog4j. - - - - The LocationInfo option takes a boolean value. By - default, it is set to false which means there will be no location - information output by this layout. If the the option is set to - true, then the file name and line number of the statement - at the origin of the log statement will be output. - - - If you are embedding this layout within an SMTPAppender - then make sure to set the LocationInfo option of that - appender as well. - - - - - - Actually do the writing of the xml - - the writer to use - the event to write - - - Generate XML that is compatible with the log4j schema. - - - - - - The version of the log4j schema to use. - - - - Only version 1.2 of the log4j schema is supported. - - - - - - The default object Renderer. - - - - The default renderer supports rendering objects and collections to strings. - - - See the method for details of the output. - - - Nicko Cadell - Gert Driesen - - - - Implement this interface in order to render objects as strings - - - - Certain types require special case conversion to - string form. This conversion is done by an object renderer. - Object renderers implement the - interface. - - - Nicko Cadell - Gert Driesen - - - - Render the object to a string - - The map used to lookup renderers - The object to render - The writer to render to - - - Render the object to a - string. - - - The parameter is - provided to lookup and render other objects. This is - very useful where contains - nested objects of unknown type. The - method can be used to render these objects. - - - - - - Default constructor - - - - Default constructor - - - - - - Render the object to a string - - The map used to lookup renderers - The object to render - The writer to render to - - - Render the object to a string. - - - The parameter is - provided to lookup and render other objects. This is - very useful where contains - nested objects of unknown type. The - method can be used to render these objects. - - - The default renderer supports rendering objects to strings as follows: - - - - Value - Rendered String - - - null - - "(null)" - - - - - - - For a one dimensional array this is the - array type name, an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. - - - For example: int[] {1, 2, 3}. - - - If the array is not one dimensional the - Array.ToString() is returned. - - - - - , & - - - Rendered as an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. - - - For example: {a, b, c}. - - - All collection classes that implement its subclasses, - or generic equivalents all implement the interface. - - - - - - - - Rendered as the key, an equals sign ('='), and the value (using the appropriate - renderer). - - - For example: key=value. - - - - - other - - Object.ToString() - - - - - - - - Render the array argument into a string - - The map used to lookup renderers - the array to render - The writer to render to - - - For a one dimensional array this is the - array type name, an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. For example: - int[] {1, 2, 3}. - - - If the array is not one dimensional the - Array.ToString() is returned. - - - - - - Render the enumerator argument into a string - - The map used to lookup renderers - the enumerator to render - The writer to render to - - - Rendered as an open brace, followed by a comma - separated list of the elements (using the appropriate - renderer), followed by a close brace. For example: - {a, b, c}. - - - - - - Render the DictionaryEntry argument into a string - - The map used to lookup renderers - the DictionaryEntry to render - The writer to render to - - - Render the key, an equals sign ('='), and the value (using the appropriate - renderer). For example: key=value. - - - - - - Map class objects to an . - - - - Maintains a mapping between types that require special - rendering and the that - is used to render them. - - - The method is used to render an - object using the appropriate renderers defined in this map. - - - Nicko Cadell - Gert Driesen - - - - Default Constructor - - - - Default constructor. - - - - - - Render using the appropriate renderer. - - the object to render to a string - the object rendered as a string - - - This is a convenience method used to render an object to a string. - The alternative method - should be used when streaming output to a . - - - - - - Render using the appropriate renderer. - - the object to render to a string - The writer to render to - - - Find the appropriate renderer for the type of the - parameter. This is accomplished by calling the - method. Once a renderer is found, it is - applied on the object and the result is returned - as a . - - - - - - Gets the renderer for the specified object type - - the object to lookup the renderer for - the renderer for - - - Gets the renderer for the specified object type. - - - Syntactic sugar method that calls - with the type of the object parameter. - - - - - - Gets the renderer for the specified type - - the type to lookup the renderer for - the renderer for the specified type - - - Returns the renderer for the specified type. - If no specific renderer has been defined the - will be returned. - - - - - - Internal function to recursively search interfaces - - the type to lookup the renderer for - the renderer for the specified type - - - - Clear the map of renderers - - - - Clear the custom renderers defined by using - . The - cannot be removed. - - - - - - Register an for . - - the type that will be rendered by - the renderer for - - - Register an object renderer for a specific source type. - This renderer will be returned from a call to - specifying the same as an argument. - - - - - - Get the default renderer instance - - the default renderer - - - Get the default renderer - - - - - - Interface implemented by logger repository plugins. - - - - Plugins define additional behavior that can be associated - with a . - The held by the - property is used to store the plugins for a repository. - - - The log4net.Config.PluginAttribute can be used to - attach plugins to repositories created using configuration - attributes. - - - Nicko Cadell - Gert Driesen - - - - Attaches the plugin to the specified . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - This method is called to notify the plugin that - it should stop operating and should detach from - the repository. - - - - - - Gets the name of the plugin. - - - The name of the plugin. - - - - Plugins are stored in the - keyed by name. Each plugin instance attached to a - repository must be a unique name. - - - - - - A strongly-typed collection of objects. - - Nicko Cadell - - - - Creates a read-only wrapper for a PluginCollection instance. - - list to create a readonly wrapper arround - - A PluginCollection wrapper that is read-only. - - - - - Initializes a new instance of the PluginCollection class - that is empty and has the default initial capacity. - - - - - Initializes a new instance of the PluginCollection class - that has the specified initial capacity. - - - The number of elements that the new PluginCollection is initially capable of storing. - - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified PluginCollection. - - The PluginCollection whose elements are copied to the new collection. - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified array. - - The array whose elements are copied to the new list. - - - - Initializes a new instance of the PluginCollection class - that contains elements copied from the specified collection. - - The collection whose elements are copied to the new list. - - - - Allow subclasses to avoid our default constructors - - - - - - - Copies the entire PluginCollection to a one-dimensional - array. - - The one-dimensional array to copy to. - - - - Copies the entire PluginCollection to a one-dimensional - array, starting at the specified index of the target array. - - The one-dimensional array to copy to. - The zero-based index in at which copying begins. - - - - Adds a to the end of the PluginCollection. - - The to be added to the end of the PluginCollection. - The index at which the value has been added. - - - - Removes all elements from the PluginCollection. - - - - - Creates a shallow copy of the . - - A new with a shallow copy of the collection data. - - - - Determines whether a given is in the PluginCollection. - - The to check for. - true if is found in the PluginCollection; otherwise, false. - - - - Returns the zero-based index of the first occurrence of a - in the PluginCollection. - - The to locate in the PluginCollection. - - The zero-based index of the first occurrence of - in the entire PluginCollection, if found; otherwise, -1. - - - - - Inserts an element into the PluginCollection at the specified index. - - The zero-based index at which should be inserted. - The to insert. - - is less than zero - -or- - is equal to or greater than . - - - - - Removes the first occurrence of a specific from the PluginCollection. - - The to remove from the PluginCollection. - - The specified was not found in the PluginCollection. - - - - - Removes the element at the specified index of the PluginCollection. - - The zero-based index of the element to remove. - - is less than zero. - -or- - is equal to or greater than . - - - - - Returns an enumerator that can iterate through the PluginCollection. - - An for the entire PluginCollection. - - - - Adds the elements of another PluginCollection to the current PluginCollection. - - The PluginCollection whose elements should be added to the end of the current PluginCollection. - The new of the PluginCollection. - - - - Adds the elements of a array to the current PluginCollection. - - The array whose elements should be added to the end of the PluginCollection. - The new of the PluginCollection. - - - - Adds the elements of a collection to the current PluginCollection. - - The collection whose elements should be added to the end of the PluginCollection. - The new of the PluginCollection. - - - - Sets the capacity to the actual number of elements. - - - - - is less than zero. - -or- - is equal to or greater than . - - - - - is less than zero. - -or- - is equal to or greater than . - - - - - Gets the number of elements actually contained in the PluginCollection. - - - - - Gets a value indicating whether access to the collection is synchronized (thread-safe). - - true if access to the ICollection is synchronized (thread-safe); otherwise, false. - - - - Gets an object that can be used to synchronize access to the collection. - - - An object that can be used to synchronize access to the collection. - - - - - Gets or sets the at the specified index. - - - The at the specified index. - - The zero-based index of the element to get or set. - - is less than zero. - -or- - is equal to or greater than . - - - - - Gets a value indicating whether the collection has a fixed size. - - true if the collection has a fixed size; otherwise, false. The default is false. - - - - Gets a value indicating whether the IList is read-only. - - true if the collection is read-only; otherwise, false. The default is false. - - - - Gets or sets the number of elements the PluginCollection can contain. - - - The number of elements the PluginCollection can contain. - - - - - Supports type-safe iteration over a . - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - - - Type visible only to our subclasses - Used to access protected constructor - - - - - - A value - - - - - Supports simple iteration over a . - - - - - - Initializes a new instance of the Enumerator class. - - - - - - Advances the enumerator to the next element in the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, before the first element in the collection. - - - - - Gets the current element in the collection. - - - The current element in the collection. - - - - - - - - Map of repository plugins. - - - - This class is a name keyed map of the plugins that are - attached to a repository. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The repository that the plugins should be attached to. - - - Initialize a new instance of the class with a - repository that the plugins should be attached to. - - - - - - Adds a to the map. - - The to add to the map. - - - The will be attached to the repository when added. - - - If there already exists a plugin with the same name - attached to the repository then the old plugin will - be and replaced with - the new plugin. - - - - - - Removes a from the map. - - The to remove from the map. - - - Remove a specific plugin from this map. - - - - - - Gets a by name. - - The name of the to lookup. - - The from the map with the name specified, or - null if no plugin is found. - - - - Lookup a plugin by name. If the plugin is not found null - will be returned. - - - - - - Gets all possible plugins as a list of objects. - - All possible plugins as a list of objects. - - - Get a collection of all the plugins defined in this map. - - - - - - Base implementation of - - - - Default abstract implementation of the - interface. This base class can be used by implementors - of the interface. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - the name of the plugin - - Initializes a new Plugin with the specified name. - - - - - Attaches this plugin to a . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - This method is called to notify the plugin that - it should stop operating and should detach from - the repository. - - - - - - The name of this plugin. - - - - - The repository this plugin is attached to. - - - - - Gets or sets the name of the plugin. - - - The name of the plugin. - - - - Plugins are stored in the - keyed by name. Each plugin instance attached to a - repository must be a unique name. - - - The name of the plugin must not change one the - plugin has been attached to a repository. - - - - - - The repository for this plugin - - - The that this plugin is attached to. - - - - Gets or sets the that this plugin is - attached to. - - - - - - Plugin that listens for events from the - - - - This plugin publishes an instance of - on a specified . This listens for logging events delivered from - a remote . - - - When an event is received it is relogged within the attached repository - as if it had been raised locally. - - - Nicko Cadell - Gert Driesen - - - - Default constructor - - - - Initializes a new instance of the class. - - - The property must be set. - - - - - - Construct with sink Uri. - - The name to publish the sink under in the remoting infrastructure. - See for more details. - - - Initializes a new instance of the class - with specified name. - - - - - - Attaches this plugin to a . - - The that this plugin should be attached to. - - - A plugin may only be attached to a single repository. - - - This method is called when the plugin is attached to the repository. - - - - - - Is called when the plugin is to shutdown. - - - - When the plugin is shutdown the remote logging - sink is disconnected. - - - - - - Gets or sets the URI of this sink. - - - The URI of this sink. - - - - This is the name under which the object is marshaled. - - - - - - - Delivers objects to a remote sink. - - - - Internal class used to listen for logging events - and deliver them to the local repository. - - - - - - Constructor - - The repository to log to. - - - Initializes a new instance of the for the - specified . - - - - - - Logs the events to the repository. - - The events to log. - - - The events passed are logged to the - - - - - - Obtains a lifetime service object to control the lifetime - policy for this instance. - - null to indicate that this instance should live forever. - - - Obtains a lifetime service object to control the lifetime - policy for this instance. This object should live forever - therefore this implementation returns null. - - - - - - The underlying that events should - be logged to. - - - - - Default implementation of - - - - This default implementation of the - interface is used to create the default subclass - of the object. - - - Nicko Cadell - Gert Driesen - - - - Interface abstracts creation of instances - - - - This interface is used by the to - create new objects. - - - The method is called - to create a named . - - - Implement this interface to create new subclasses of . - - - Nicko Cadell - Gert Driesen - - - - Create a new instance - - The name of the . - The instance for the specified name. - - - Create a new instance with the - specified name. - - - Called by the to create - new named instances. - - - If the is null then the root logger - must be returned. - - - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Create a new instance - - The name of the . - The instance for the specified name. - - - Create a new instance with the - specified name. - - - Called by the to create - new named instances. - - - If the is null then the root logger - must be returned. - - - - - - Default internal subclass of - - - - This subclass has no additional behavior over the - class but does allow instances - to be created. - - - - - - Implementation of used by - - - - Internal class used to provide implementation of - interface. Applications should use to get - logger instances. - - - This is one of the central classes in the log4net implementation. One of the - distinctive features of log4net are hierarchical loggers and their - evaluation. The organizes the - instances into a rooted tree hierarchy. - - - The class is abstract. Only concrete subclasses of - can be created. The - is used to create instances of this type for the . - - - Nicko Cadell - Gert Driesen - Aspi Havewala - Douglas de la Torre - - - - This constructor created a new instance and - sets its name. - - The name of the . - - - This constructor is protected and designed to be used by - a subclass that is not abstract. - - - Loggers are constructed by - objects. See for the default - logger creator. - - - - - - Add to the list of appenders of this - Logger instance. - - An appender to add to this logger - - - Add to the list of appenders of this - Logger instance. - - - If is already in the list of - appenders, then it won't be added again. - - - - - - Look for the appender named as name - - The name of the appender to lookup - The appender with the name specified, or null. - - - Returns the named appender, or null if the appender is not found. - - - - - - Remove all previously added appenders from this Logger instance. - - - - Remove all previously added appenders from this Logger instance. - - - This is useful when re-reading configuration information. - - - - - - Remove the appender passed as parameter form the list of appenders. - - The appender to remove - The appender removed from the list - - - Remove the appender passed as parameter form the list of appenders. - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Remove the appender passed as parameter form the list of appenders. - - The name of the appender to remove - The appender removed from the list - - - Remove the named appender passed as parameter form the list of appenders. - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - This generic form is intended to be used by wrappers. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generate a logging event for the specified using - the and . - - - This method must not throw any exception to the caller. - - - - - - This is the most generic printing method that is intended to be used - by wrappers. - - The event being logged. - - - Logs the specified logging event through this logger. - - - This method must not throw any exception to the caller. - - - - - - Checks if this logger is enabled for a given passed as parameter. - - The level to check. - - true if this logger is enabled for level, otherwise false. - - - - Test if this logger is going to log events of the specified . - - - This method must not throw any exception to the caller. - - - - - - Deliver the to the attached appenders. - - The event to log. - - - Call the appenders in the hierarchy starting at - this. If no appenders could be found, emit a - warning. - - - This method calls all the appenders inherited from the - hierarchy circumventing any evaluation of whether to log or not - to log the particular log request. - - - - - - Closes all attached appenders implementing the interface. - - - - Used to ensure that the appenders are correctly shutdown. - - - - - - This is the most generic printing method. This generic form is intended to be used by wrappers - - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generate a logging event for the specified using - the . - - - - - - Creates a new logging event and logs the event without further checks. - - The declaring type of the method that is - the stack boundary into the logging system for this call. - The level of the message to be logged. - The message object to log. - The exception to log, including its stack trace. - - - Generates a logging event and delivers it to the attached - appenders. - - - - - - Creates a new logging event and logs the event without further checks. - - The event being logged. - - - Delivers the logging event to the attached appenders. - - - - - - The fully qualified type of the Logger class. - - - - - The name of this logger. - - - - - The assigned level of this logger. - - - - The level variable need not be - assigned a value in which case it is inherited - form the hierarchy. - - - - - - The parent of this logger. - - - - The parent of this logger. - All loggers have at least one ancestor which is the root logger. - - - - - - Loggers need to know what Hierarchy they are in. - - - - Loggers need to know what Hierarchy they are in. - The hierarchy that this logger is a member of is stored - here. - - - - - - Helper implementation of the interface - - - - - Flag indicating if child loggers inherit their parents appenders - - - - Additivity is set to true by default, that is children inherit - the appenders of their ancestors by default. If this variable is - set to false then the appenders found in the - ancestors of this logger are not used. However, the children - of this logger will inherit its appenders, unless the children - have their additivity flag set to false too. See - the user manual for more details. - - - - - - Lock to protect AppenderAttachedImpl variable m_appenderAttachedImpl - - - - - Gets or sets the parent logger in the hierarchy. - - - The parent logger in the hierarchy. - - - - Part of the Composite pattern that makes the hierarchy. - The hierarchy is parent linked rather than child linked. - - - - - - Gets or sets a value indicating if child loggers inherit their parent's appenders. - - - true if child loggers inherit their parent's appenders. - - - - Additivity is set to true by default, that is children inherit - the appenders of their ancestors by default. If this variable is - set to false then the appenders found in the - ancestors of this logger are not used. However, the children - of this logger will inherit its appenders, unless the children - have their additivity flag set to false too. See - the user manual for more details. - - - - - - Gets the effective level for this logger. - - The nearest level in the logger hierarchy. - - - Starting from this logger, searches the logger hierarchy for a - non-null level and returns it. Otherwise, returns the level of the - root logger. - - The Logger class is designed so that this method executes as - quickly as possible. - - - - - Gets or sets the where this - Logger instance is attached to. - - The hierarchy that this logger belongs to. - - - This logger must be attached to a single . - - - - - - Gets or sets the assigned , if any, for this Logger. - - - The of this logger. - - - - The assigned can be null. - - - - - - Get the appenders contained in this logger as an - . - - A collection of the appenders in this logger - - - Get the appenders contained in this logger as an - . If no appenders - can be found, then a is returned. - - - - - - Gets the logger name. - - - The name of the logger. - - - - The name of this logger - - - - - - Gets the where this - Logger instance is attached to. - - - The that this logger belongs to. - - - - Gets the where this - Logger instance is attached to. - - - - - - Construct a new Logger - - the name of the logger - - - Initializes a new instance of the class - with the specified name. - - - - - - Delegate used to handle logger creation event notifications. - - The in which the has been created. - The event args that hold the instance that has been created. - - - Delegate used to handle logger creation event notifications. - - - - - - Provides data for the event. - - - - A event is raised every time a - is created. - - - - - - The created - - - - - Constructor - - The that has been created. - - - Initializes a new instance of the event argument - class,with the specified . - - - - - - Gets the that has been created. - - - The that has been created. - - - - The that has been created. - - - - - - Hierarchical organization of loggers - - - - The casual user should not have to deal with this class - directly. - - - This class is specialized in retrieving loggers by name and - also maintaining the logger hierarchy. Implements the - interface. - - - The structure of the logger hierarchy is maintained by the - method. The hierarchy is such that children - link to their parent but parents do not have any references to their - children. Moreover, loggers can be instantiated in any order, in - particular descendant before ancestor. - - - In case a descendant is created before a particular ancestor, - then it creates a provision node for the ancestor and adds itself - to the provision node. Other descendants of the same ancestor add - themselves to the previously created provision node. - - - Nicko Cadell - Gert Driesen - - - - Base implementation of - - - - Default abstract implementation of the interface. - - - Skeleton implementation of the interface. - All types can extend this type. - - - Nicko Cadell - Gert Driesen - - - - Interface implemented by logger repositories. - - - - This interface is implemented by logger repositories. e.g. - . - - - This interface is used by the - to obtain interfaces. - - - Nicko Cadell - Gert Driesen - - - - Check if the named logger exists in the repository. If so return - its reference, otherwise returns null. - - The name of the logger to lookup - The Logger object with the name specified - - - If the names logger exists it is returned, otherwise - null is returned. - - - - - - Returns all the currently defined loggers as an Array. - - All the defined loggers - - - Returns all the currently defined loggers as an Array. - - - - - - Returns a named logger instance - - The name of the logger to retrieve - The logger object with the name specified - - - Returns a named logger instance. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - - - Shutdown the repository - - - Shutting down a repository will safely close and remove - all appenders in all loggers including the root logger. - - - Some appenders need to be closed before the - application exists. Otherwise, pending logging events might be - lost. - - - The method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Reset the repositories configuration to a default state - - - - Reset all values contained in this instance to their - default state. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the through this repository. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are configured as an Array. - - All the Appenders - - - Returns all the Appenders that are configured as an Array. - - - - - - The name of the repository - - - The name of the repository - - - - The name of the repository. - - - - - - RendererMap accesses the object renderer map for this repository. - - - RendererMap accesses the object renderer map for this repository. - - - - RendererMap accesses the object renderer map for this repository. - - - The RendererMap holds a mapping between types and - objects. - - - - - - The plugin map for this repository. - - - The plugin map for this repository. - - - - The plugin map holds the instances - that have been attached to this repository. - - - - - - Get the level map for the Repository. - - - - Get the level map for the Repository. - - - The level map defines the mappings between - level names and objects in - this repository. - - - - - - The threshold for all events in this repository - - - The threshold for all events in this repository - - - - The threshold for all events in this repository. - - - - - - Flag indicates if this repository has been configured. - - - Flag indicates if this repository has been configured. - - - - Flag indicates if this repository has been configured. - - - - - - Event to notify that the repository has been shutdown. - - - Event to notify that the repository has been shutdown. - - - - Event raised when the repository has been shutdown. - - - - - - Event to notify that the repository has had its configuration reset. - - - Event to notify that the repository has had its configuration reset. - - - - Event raised when the repository's configuration has been - reset to default. - - - - - - Event to notify that the repository has had its configuration changed. - - - Event to notify that the repository has had its configuration changed. - - - - Event raised when the repository's configuration has been changed. - - - - - - Repository specific properties - - - Repository specific properties - - - - These properties can be specified on a repository specific basis. - - - - - - Default Constructor - - - - Initializes the repository with default (empty) properties. - - - - - - Construct the repository using specific properties - - the properties to set for this repository - - - Initializes the repository with specified properties. - - - - - - Test if logger exists - - The name of the logger to lookup - The Logger object with the name specified - - - Check if the named logger exists in the repository. If so return - its reference, otherwise returns null. - - - - - - Returns all the currently defined loggers in the repository - - All the defined loggers - - - Returns all the currently defined loggers in the repository as an Array. - - - - - - Return a new logger instance - - The name of the logger to retrieve - The logger object with the name specified - - - Return a new logger instance. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - - - - Shutdown the repository - - - - Shutdown the repository. Can be overridden in a subclass. - This base class implementation notifies the - listeners and all attached plugins of the shutdown event. - - - - - - Reset the repositories configuration to a default state - - - - Reset all values contained in this instance to their - default state. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the logEvent through this repository. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are configured as an Array. - - All the Appenders - - - Returns all the Appenders that are configured as an Array. - - - - - - Adds an object renderer for a specific class. - - The type that will be rendered by the renderer supplied. - The object renderer used to render the object. - - - Adds an object renderer for a specific class. - - - - - - Notify the registered listeners that the repository is shutting down - - Empty EventArgs - - - Notify any listeners that this repository is shutting down. - - - - - - Notify the registered listeners that the repository has had its configuration reset - - Empty EventArgs - - - Notify any listeners that this repository's configuration has been reset. - - - - - - Notify the registered listeners that the repository has had its configuration changed - - Empty EventArgs - - - Notify any listeners that this repository's configuration has changed. - - - - - - Raise a configuration changed event on this repository - - EventArgs.Empty - - - Applications that programmatically change the configuration of the repository should - raise this event notification to notify listeners. - - - - - - The name of the repository - - - The string name of the repository - - - - The name of this repository. The name is - used to store and lookup the repositories - stored by the . - - - - - - The threshold for all events in this repository - - - The threshold for all events in this repository - - - - The threshold for all events in this repository - - - - - - RendererMap accesses the object renderer map for this repository. - - - RendererMap accesses the object renderer map for this repository. - - - - RendererMap accesses the object renderer map for this repository. - - - The RendererMap holds a mapping between types and - objects. - - - - - - The plugin map for this repository. - - - The plugin map for this repository. - - - - The plugin map holds the instances - that have been attached to this repository. - - - - - - Get the level map for the Repository. - - - - Get the level map for the Repository. - - - The level map defines the mappings between - level names and objects in - this repository. - - - - - - Flag indicates if this repository has been configured. - - - Flag indicates if this repository has been configured. - - - - Flag indicates if this repository has been configured. - - - - - - Event to notify that the repository has been shutdown. - - - Event to notify that the repository has been shutdown. - - - - Event raised when the repository has been shutdown. - - - - - - Event to notify that the repository has had its configuration reset. - - - Event to notify that the repository has had its configuration reset. - - - - Event raised when the repository's configuration has been - reset to default. - - - - - - Event to notify that the repository has had its configuration changed. - - - Event to notify that the repository has had its configuration changed. - - - - Event raised when the repository's configuration has been changed. - - - - - - Repository specific properties - - - Repository specific properties - - - These properties can be specified on a repository specific basis - - - - - Basic Configurator interface for repositories - - - - Interface used by basic configurator to configure a - with a default . - - - A should implement this interface to support - configuration by the . - - - Nicko Cadell - Gert Driesen - - - - Initialize the repository using the specified appender - - the appender to use to log all logging events - - - Configure the repository to route all logging events to the - specified appender. - - - - - - Configure repository using XML - - - - Interface used by Xml configurator to configure a . - - - A should implement this interface to support - configuration by the . - - - Nicko Cadell - Gert Driesen - - - - Initialize the repository using the specified config - - the element containing the root of the config - - - The schema for the XML configuration data is defined by - the implementation. - - - - - - Default constructor - - - - Initializes a new instance of the class. - - - - - - Construct with properties - - The properties to pass to this repository. - - - Initializes a new instance of the class. - - - - - - Construct with a logger factory - - The factory to use to create new logger instances. - - - Initializes a new instance of the class with - the specified . - - - - - - Construct with properties and a logger factory - - The properties to pass to this repository. - The factory to use to create new logger instances. - - - Initializes a new instance of the class with - the specified . - - - - - - Test if a logger exists - - The name of the logger to lookup - The Logger object with the name specified - - - Check if the named logger exists in the hierarchy. If so return - its reference, otherwise returns null. - - - - - - Returns all the currently defined loggers in the hierarchy as an Array - - All the defined loggers - - - Returns all the currently defined loggers in the hierarchy as an Array. - The root logger is not included in the returned - enumeration. - - - - - - Return a new logger instance named as the first parameter using - the default factory. - - - - Return a new logger instance named as the first parameter using - the default factory. - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated and - then linked with its existing ancestors as well as children. - - - The name of the logger to retrieve - The logger object with the name specified - - - - Shutting down a hierarchy will safely close and remove - all appenders in all loggers including the root logger. - - - - Shutting down a hierarchy will safely close and remove - all appenders in all loggers including the root logger. - - - Some appenders need to be closed before the - application exists. Otherwise, pending logging events might be - lost. - - - The Shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Reset all values contained in this hierarchy instance to their default. - - - - Reset all values contained in this hierarchy instance to their - default. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set its default "off" value. - - - Existing loggers are not removed. They are just reset. - - - This method should be used sparingly and with care as it will - block all logging until it is completed. - - - - - - Log the logEvent through this hierarchy. - - the event to log - - - This method should not normally be used to log. - The interface should be used - for routine logging. This interface can be obtained - using the method. - - - The logEvent is delivered to the appropriate logger and - that logger is then responsible for logging the event. - - - - - - Returns all the Appenders that are currently configured - - An array containing all the currently configured appenders - - - Returns all the instances that are currently configured. - All the loggers are searched for appenders. The appenders may also be containers - for appenders and these are also searched for additional loggers. - - - The list returned is unordered but does not contain duplicates. - - - - - - Collect the appenders from an . - The appender may also be a container. - - - - - - - Collect the appenders from an container - - - - - - - Initialize the log4net system using the specified appender - - the appender to use to log all logging events - - - - Initialize the log4net system using the specified appender - - the appender to use to log all logging events - - - This method provides the same functionality as the - method implemented - on this object, but it is protected and therefore can be called by subclasses. - - - - - - Initialize the log4net system using the specified config - - the element containing the root of the config - - - - Initialize the log4net system using the specified config - - the element containing the root of the config - - - This method provides the same functionality as the - method implemented - on this object, but it is protected and therefore can be called by subclasses. - - - - - - Test if this hierarchy is disabled for the specified . - - The level to check against. - - true if the repository is disabled for the level argument, false otherwise. - - - - If this hierarchy has not been configured then this method will - always return true. - - - This method will return true if this repository is - disabled for level object passed as parameter and - false otherwise. - - - See also the property. - - - - - - Clear all logger definitions from the internal hashtable - - - - This call will clear all logger definitions from the internal - hashtable. Invoking this method will irrevocably mess up the - logger hierarchy. - - - You should really know what you are doing before - invoking this method. - - - - - - Return a new logger instance named as the first parameter using - . - - The name of the logger to retrieve - The factory that will make the new logger instance - The logger object with the name specified - - - If a logger of that name already exists, then it will be - returned. Otherwise, a new logger will be instantiated by the - parameter and linked with its existing - ancestors as well as children. - - - - - - Sends a logger creation event to all registered listeners - - The newly created logger - - Raises the logger creation event. - - - - - Updates all the parents of the specified logger - - The logger to update the parents for - - - This method loops through all the potential parents of - . There 3 possible cases: - - - - No entry for the potential parent of exists - - We create a ProvisionNode for this potential - parent and insert in that provision node. - - - - The entry is of type Logger for the potential parent. - - The entry is 's nearest existing parent. We - update 's parent field with this entry. We also break from - he loop because updating our parent's parent is our parent's - responsibility. - - - - The entry is of type ProvisionNode for this potential parent. - - We add to the list of children for this - potential parent. - - - - - - - - Replace a with a in the hierarchy. - - - - - - We update the links for all the children that placed themselves - in the provision node 'pn'. The second argument 'log' is a - reference for the newly created Logger, parent of all the - children in 'pn'. - - - We loop on all the children 'c' in 'pn'. - - - If the child 'c' has been already linked to a child of - 'log' then there is no need to update 'c'. - - - Otherwise, we set log's parent field to c's parent and set - c's parent field to log. - - - - - - Define or redefine a Level using the values in the argument - - the level values - - - Define or redefine a Level using the values in the argument - - - Supports setting levels via the configuration file. - - - - - - Set a Property using the values in the argument - - the property value - - - Set a Property using the values in the argument. - - - Supports setting property values via the configuration file. - - - - - - Event used to notify that a logger has been created. - - - - Event raised when a logger is created. - - - - - - Has no appender warning been emitted - - - - Flag to indicate if we have already issued a warning - about not having an appender warning. - - - - - - Get the root of this hierarchy - - - - Get the root of this hierarchy. - - - - - - Gets or sets the default instance. - - The default - - - The logger factory is used to create logger instances. - - - - - - A class to hold the value, name and display name for a level - - - - A class to hold the value, name and display name for a level - - - - - - Override Object.ToString to return sensible debug info - - string info about this object - - - - Value of the level - - - - If the value is not set (defaults to -1) the value will be looked - up for the current level with the same name. - - - - - - Name of the level - - - The name of the level - - - - The name of the level. - - - - - - Display name for the level - - - The display name of the level - - - - The display name of the level. - - - - - - A class to hold the key and data for a property set in the config file - - - - A class to hold the key and data for a property set in the config file - - - - - - Override Object.ToString to return sensible debug info - - string info about this object - - - - Property Key - - - Property Key - - - - Property Key. - - - - - - Property Value - - - Property Value - - - - Property Value. - - - - - - Used internally to accelerate hash table searches. - - - - Internal class used to improve performance of - string keyed hashtables. - - - The hashcode of the string is cached for reuse. - The string is stored as an interned value. - When comparing two objects for equality - the reference equality of the interned strings is compared. - - - Nicko Cadell - Gert Driesen - - - - Construct key with string name - - - - Initializes a new instance of the class - with the specified name. - - - Stores the hashcode of the string and interns - the string key to optimize comparisons. - - - The Compact Framework 1.0 the - method does not work. On the Compact Framework - the string keys are not interned nor are they - compared by reference. - - - The name of the logger. - - - - Returns a hash code for the current instance. - - A hash code for the current instance. - - - Returns the cached hashcode. - - - - - - Determines whether two instances - are equal. - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - Compares the references of the interned strings. - - - - - - Provision nodes are used where no logger instance has been specified - - - - instances are used in the - when there is no specified - for that node. - - - A provision node holds a list of child loggers on behalf of - a logger that does not exist. - - - Nicko Cadell - Gert Driesen - - - - Create a new provision node with child node - - A child logger to add to this node. - - - Initializes a new instance of the class - with the specified child logger. - - - - - - The sits at the root of the logger hierarchy tree. - - - - The is a regular except - that it provides several guarantees. - - - First, it cannot be assigned a null - level. Second, since the root logger cannot have a parent, the - property always returns the value of the - level field without walking the hierarchy. - - - Nicko Cadell - Gert Driesen - - - - Construct a - - The level to assign to the root logger. - - - Initializes a new instance of the class with - the specified logging level. - - - The root logger names itself as "root". However, the root - logger cannot be retrieved by name. - - - - - - Gets the assigned level value without walking the logger hierarchy. - - The assigned level value without walking the logger hierarchy. - - - Because the root logger cannot have a parent and its level - must not be null this property just returns the - value of . - - - - - - Gets or sets the assigned for the root logger. - - - The of the root logger. - - - - Setting the level of the root logger to a null reference - may have catastrophic results. We prevent this here. - - - - - - Initializes the log4net environment using an XML DOM. - - - - Configures a using an XML DOM. - - - Nicko Cadell - Gert Driesen - - - - Construct the configurator for a hierarchy - - The hierarchy to build. - - - Initializes a new instance of the class - with the specified . - - - - - - Configure the hierarchy by parsing a DOM tree of XML elements. - - The root element to parse. - - - Configure the hierarchy by parsing a DOM tree of XML elements. - - - - - - Parse appenders by IDREF. - - The appender ref element. - The instance of the appender that the ref refers to. - - - Parse an XML element that represents an appender and return - the appender. - - - - - - Parses an appender element. - - The appender element. - The appender instance or null when parsing failed. - - - Parse an XML element that represents an appender and return - the appender instance. - - - - - - Parses a logger element. - - The logger element. - - - Parse an XML element that represents a logger. - - - - - - Parses the root logger element. - - The root element. - - - Parse an XML element that represents the root logger. - - - - - - Parses the children of a logger element. - - The category element. - The logger instance. - Flag to indicate if the logger is the root logger. - - - Parse the child elements of a <logger> element. - - - - - - Parses an object renderer. - - The renderer element. - - - Parse an XML element that represents a renderer. - - - - - - Parses a level element. - - The level element. - The logger object to set the level on. - Flag to indicate if the logger is the root logger. - - - Parse an XML element that represents a level. - - - - - - Sets a parameter on an object. - - The parameter element. - The object to set the parameter on. - - The parameter name must correspond to a writable property - on the object. The value of the parameter is a string, - therefore this function will attempt to set a string - property first. If unable to set a string property it - will inspect the property and its argument type. It will - attempt to call a static method called Parse on the - type of the property. This method will take a single - string argument and return a value that can be used to - set the property. - - - - - Test if an element has no attributes or child elements - - the element to inspect - true if the element has any attributes or child elements, false otherwise - - - - Test if a is constructible with Activator.CreateInstance. - - the type to inspect - true if the type is creatable using a default constructor, false otherwise - - - - Look for a method on the that matches the supplied - - the type that has the method - the name of the method - the method info found - - - The method must be a public instance method on the . - The method must be named or "Add" followed by . - The method must take a single parameter. - - - - - - Converts a string value to a target type. - - The type of object to convert the string to. - The string value to use as the value of the object. - - - An object of type with value or - null when the conversion could not be performed. - - - - - - Creates an object as specified in XML. - - The XML element that contains the definition of the object. - The object type to use if not explicitly specified. - The type that the returned object must be or must inherit from. - The object or null - - - Parse an XML element and create an object instance based on the configuration - data. - - - The type of the instance may be specified in the XML. If not - specified then the is used - as the type. However the type is specified it must support the - type. - - - - - - key: appenderName, value: appender. - - - - - The Hierarchy being configured. - - - - - Delegate used to handle logger repository shutdown event notifications - - The that is shutting down. - Empty event args - - - Delegate used to handle logger repository shutdown event notifications. - - - - - - Delegate used to handle logger repository configuration reset event notifications - - The that has had its configuration reset. - Empty event args - - - Delegate used to handle logger repository configuration reset event notifications. - - - - - - Delegate used to handle event notifications for logger repository configuration changes. - - The that has had its configuration changed. - Empty event arguments. - - - Delegate used to handle event notifications for logger repository configuration changes. - - - - - - Write the name of the current AppDomain to the output - - - - Write the name of the current AppDomain to the output writer - - - Nicko Cadell - - - - Write the name of the current AppDomain to the output - - the writer to write to - null, state is not set - - - Writes name of the current AppDomain to the output . - - - - - - Write the current date to the output - - - - Date pattern converter, uses a to format - the current date and time to the writer as a string. - - - The value of the determines - the formatting of the date. The following values are allowed: - - - Option value - Output - - - ISO8601 - - Uses the formatter. - Formats using the "yyyy-MM-dd HH:mm:ss,fff" pattern. - - - - DATE - - Uses the formatter. - Formats using the "dd MMM yyyy HH:mm:ss,fff" for example, "06 Nov 1994 15:49:37,459". - - - - ABSOLUTE - - Uses the formatter. - Formats using the "HH:mm:ss,fff" for example, "15:49:37,459". - - - - other - - Any other pattern string uses the formatter. - This formatter passes the pattern string to the - method. - For details on valid patterns see - DateTimeFormatInfo Class. - - - - - - The date and time is in the local time zone and is rendered in that zone. - To output the time in Universal time see . - - - Nicko Cadell - - - - The used to render the date to a string - - - - The used to render the date to a string - - - - - - Initialize the converter options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write the current date to the output - - that will receive the formatted result. - null, state is not set - - - Pass the current date and time to the - for it to render it to the writer. - - - The date and time passed is in the local time zone. - - - - - - Write an environment variable to the output - - - - Write an environment variable to the output writer. - The value of the determines - the name of the variable to output. - - - Nicko Cadell - - - - Write an environment variable to the output - - the writer to write to - null, state is not set - - - Writes the environment variable to the output . - The name of the environment variable to output must be set - using the - property. - - - - - - Write the current thread identity to the output - - - - Write the current thread identity to the output writer - - - Nicko Cadell - - - - Write the current thread identity to the output - - the writer to write to - null, state is not set - - - Writes the current thread identity to the output . - - - - - - Pattern converter for literal string instances in the pattern - - - - Writes the literal string value specified in the - property to - the output. - - - Nicko Cadell - - - - Set the next converter in the chain - - The next pattern converter in the chain - The next pattern converter - - - Special case the building of the pattern converter chain - for instances. Two adjacent - literals in the pattern can be represented by a single combined - pattern converter. This implementation detects when a - is added to the chain - after this converter and combines its value with this converter's - literal value. - - - - - - Write the literal to the output - - the writer to write to - null, not set - - - Override the formatting behavior to ignore the FormattingInfo - because we have a literal instead. - - - Writes the value of - to the output . - - - - - - Convert this pattern into the rendered message - - that will receive the formatted result. - null, not set - - - This method is not used. - - - - - - Writes a newline to the output - - - - Writes the system dependent line terminator to the output. - This behavior can be overridden by setting the : - - - - Option Value - Output - - - DOS - DOS or Windows line terminator "\r\n" - - - UNIX - UNIX line terminator "\n" - - - - Nicko Cadell - - - - Initialize the converter - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write the current process ID to the output - - - - Write the current process ID to the output writer - - - Nicko Cadell - - - - Write the current process ID to the output - - the writer to write to - null, state is not set - - - Write the current process ID to the output . - - - - - - Property pattern converter - - - - This pattern converter reads the thread and global properties. - The thread properties take priority over global properties. - See for details of the - thread properties. See for - details of the global properties. - - - If the is specified then that will be used to - lookup a single property. If no is specified - then all properties will be dumped as a list of key value pairs. - - - Nicko Cadell - - - - Write the property value to the output - - that will receive the formatted result. - null, state is not set - - - Writes out the value of a named property. The property name - should be set in the - property. - - - If the is set to null - then all the properties are written as key value pairs. - - - - - - A Pattern converter that generates a string of random characters - - - - The converter generates a string of random characters. By default - the string is length 4. This can be changed by setting the - to the string value of the length required. - - - The random characters in the string are limited to uppercase letters - and numbers only. - - - The random number generator used by this class is not cryptographically secure. - - - Nicko Cadell - - - - Shared random number generator - - - - - Length of random string to generate. Default length 4. - - - - - Initialize the converter options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Write a randoim string to the output - - the writer to write to - null, state is not set - - - Write a randoim string to the output . - - - - - - Write the current threads username to the output - - - - Write the current threads username to the output writer - - - Nicko Cadell - - - - Write the current threads username to the output - - the writer to write to - null, state is not set - - - Write the current threads username to the output . - - - - - - Write the UTC date time to the output - - - - Date pattern converter, uses a to format - the current date and time in Universal time. - - - See the for details on the date pattern syntax. - - - - Nicko Cadell - - - - Write the current date and time to the output - - that will receive the formatted result. - null, state is not set - - - Pass the current date and time to the - for it to render it to the writer. - - - The date is in Universal time when it is rendered. - - - - - - - Type converter for Boolean. - - - - Supports conversion from string to bool type. - - - - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Convert the source object to the type supported by this object - - the object to convert - the converted object - - - Uses the method to convert the - argument to a . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Exception base type for conversion errors. - - - - This type extends . It - does not add any new functionality but does differentiate the - type of exception being thrown. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - A message to include with the exception. - - - Initializes a new instance of the class - with the specified message. - - - - - - Constructor - - A message to include with the exception. - A nested exception to include. - - - Initializes a new instance of the class - with the specified message and inner exception. - - - - - - Serialization constructor - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Creates a new instance of the class. - - The conversion destination type. - The value to convert. - An instance of the . - - - Creates a new instance of the class. - - - - - - Creates a new instance of the class. - - The conversion destination type. - The value to convert. - A nested exception to include. - An instance of the . - - - Creates a new instance of the class. - - - - - - Register of type converters for specific types. - - - - Maintains a registry of type converters used to convert between - types. - - - Use the and - methods to register new converters. - The and methods - lookup appropriate converters to use. - - - - - Nicko Cadell - Gert Driesen - - - - Private constructor - - - Initializes a new instance of the class. - - - - - Static constructor. - - - - This constructor defines the intrinsic type converters. - - - - - - Adds a converter for a specific type. - - The type being converted to. - The type converter to use to convert to the destination type. - - - Adds a converter instance for a specific type. - - - - - - Adds a converter for a specific type. - - The type being converted to. - The type of the type converter to use to convert to the destination type. - - - Adds a converter for a specific type. - - - - - - Gets the type converter to use to convert values to the destination type. - - The type being converted from. - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - Gets the type converter to use to convert values to the destination type. - - - - - - Gets the type converter to use to convert values to the destination type. - - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - Gets the type converter to use to convert values to the destination type. - - - - - - Lookups the type converter to use as specified by the attributes on the - destination type. - - The type being converted to. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - - Creates the instance of the type converter. - - The type of the type converter. - - The type converter instance to use for type conversions or null - if no type converter is found. - - - - The type specified for the type converter must implement - the or interfaces - and must have a public default (no argument) constructor. - - - - - - Mapping from to type converter. - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - - Nicko Cadell - Gert Driesen - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to an encoding - the encoding - - - Uses the method to - convert the argument to an . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Interface supported by type converters - - - - This interface supports conversion from a single type to arbitrary types. - See . - - - Nicko Cadell - - - - Returns whether this converter can convert the object to the specified type - - A Type that represents the type you want to convert to - true if the conversion is possible - - - Test if the type supported by this converter can be converted to the - . - - - - - - Converts the given value object to the specified type, using the arguments - - the object to convert - The Type to convert the value parameter to - the converted object - - - Converts the (which must be of the type supported - by this converter) to the specified.. - - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to an IPAddress - the IPAddress - - - Uses the method to convert the - argument to an . - If that fails then the string is resolved as a DNS hostname. - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Valid characters in an IPv4 or IPv6 address string. (Does not support subnets) - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - The string is used as the - of the . - - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a PatternLayout - the PatternLayout - - - Creates and returns a new using - the as the - . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Convert between string and - - - - Supports conversion from string to type, - and from a type to a string. - - - The string is used as the - of the . - - - - - - Nicko Cadell - - - - Can the target type be converted to the type supported by this object - - A that represents the type you want to convert to - true if the conversion is possible - - - Returns true if the is - assignable from a type. - - - - - - Converts the given value object to the specified type, using the arguments - - the object to convert - The Type to convert the value parameter to - the converted object - - - Uses the method to convert the - argument to a . - - - - The object cannot be converted to the - . To check for this condition use the - method. - - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a PatternString - the PatternString - - - Creates and returns a new using - the as the - . - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Supports conversion from string to type. - - - - Supports conversion from string to type. - - - - - - Nicko Cadell - - - - Can the source type be converted to the type supported by this object - - the type to convert - true if the conversion is possible - - - Returns true if the is - the type. - - - - - - Overrides the ConvertFrom method of IConvertFrom. - - the object to convert to a Type - the Type - - - Uses the method to convert the - argument to a . - Additional effort is made to locate partially specified types - by searching the loaded assemblies. - - - - The object cannot be converted to the - target type. To check for this condition use the - method. - - - - - Attribute used to associate a type converter - - - - Class and Interface level attribute that specifies a type converter - to use with the associated type. - - - To associate a type converter with a target type apply a - TypeConverterAttribute to the target type. Specify the - type of the type converter on the attribute. - - - Nicko Cadell - Gert Driesen - - - - The string type name of the type converter - - - - - Default constructor - - - - Default constructor - - - - - - Create a new type converter attribute for the specified type name - - The string type name of the type converter - - - The type specified must implement the - or the interfaces. - - - - - - Create a new type converter attribute for the specified type - - The type of the type converter - - - The type specified must implement the - or the interfaces. - - - - - - The string type name of the type converter - - - The string type name of the type converter - - - - The type specified must implement the - or the interfaces. - - - - - - A straightforward implementation of the interface. - - - - This is the default implementation of the - interface. Implementors of the interface - should aggregate an instance of this type. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Append on on all attached appenders. - - The event being logged. - The number of appenders called. - - - Calls the method on all - attached appenders. - - - - - - Append on on all attached appenders. - - The array of events being logged. - The number of appenders called. - - - Calls the method on all - attached appenders. - - - - - - Calls the DoAppende method on the with - the objects supplied. - - The appender - The events - - - If the supports the - interface then the will be passed - through using that interface. Otherwise the - objects in the array will be passed one at a time. - - - - - - Attaches an appender. - - The appender to add. - - - If the appender is already in the list it won't be added again. - - - - - - Gets an attached appender with the specified name. - - The name of the appender to get. - - The appender with the name specified, or null if no appender with the - specified name is found. - - - - Lookup an attached appender by name. - - - - - - Removes all attached appenders. - - - - Removes and closes all attached appenders - - - - - - Removes the specified appender from the list of attached appenders. - - The appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - Removes the appender with the specified name from the list of appenders. - - The name of the appender to remove. - The appender removed from the list - - - The appender removed is not closed. - If you are discarding the appender you must call - on the appender removed. - - - - - - List of appenders - - - - - Array of appenders, used to cache the m_appenderList - - - - - Gets all attached appenders. - - - A collection of attached appenders, or null if there - are no attached appenders. - - - - The read only collection of all currently attached appenders. - - - - - - This class aggregates several PropertiesDictionary collections together. - - - - Provides a dictionary style lookup over an ordered list of - collections. - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Add a Properties Dictionary to this composite collection - - the properties to add - - - Properties dictionaries added first take precedence over dictionaries added - later. - - - - - - Flatten this composite collection into a single properties dictionary - - the flattened dictionary - - - Reduces the collection of ordered dictionaries to a single dictionary - containing the resultant values for the keys. - - - - - - Gets the value of a property - - - The value for the property with the specified key - - - - Looks up the value for the specified. - The collections are searched - in the order in which they were added to this collection. The value - returned is the value held by the first collection that contains - the specified key. - - - If none of the collections contain the specified key then - null is returned. - - - - - - Base class for Context Properties implementations - - - - This class defines a basic property get set accessor - - - Nicko Cadell - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Subclass of that maintains a count of - the number of bytes written. - - - - This writer counts the number of bytes written. - - - Nicko Cadell - Gert Driesen - - - - that does not leak exceptions - - - - does not throw exceptions when things go wrong. - Instead, it delegates error handling to its . - - - Nicko Cadell - Gert Driesen - - - - Adapter that extends and forwards all - messages to an instance of . - - - - Adapter that extends and forwards all - messages to an instance of . - - - Nicko Cadell - - - - The writer to forward messages to - - - - - Create an instance of that forwards all - messages to a . - - The to forward to - - - Create an instance of that forwards all - messages to a . - - - - - - Closes the writer and releases any system resources associated with the writer - - - - - - - - - Dispose this writer - - flag indicating if we are being disposed - - - Dispose this writer - - - - - - Flushes any buffered output - - - - Clears all buffers for the writer and causes any buffered data to be written - to the underlying device - - - - - - Writes a character to the wrapped TextWriter - - the value to write to the TextWriter - - - Writes a character to the wrapped TextWriter - - - - - - Writes a character buffer to the wrapped TextWriter - - the data buffer - the start index - the number of characters to write - - - Writes a character buffer to the wrapped TextWriter - - - - - - Writes a string to the wrapped TextWriter - - the value to write to the TextWriter - - - Writes a string to the wrapped TextWriter - - - - - - Gets or sets the underlying . - - - The underlying . - - - - Gets or sets the underlying . - - - - - - The Encoding in which the output is written - - - The - - - - The Encoding in which the output is written - - - - - - Gets an object that controls formatting - - - The format provider - - - - Gets an object that controls formatting - - - - - - Gets or sets the line terminator string used by the TextWriter - - - The line terminator to use - - - - Gets or sets the line terminator string used by the TextWriter - - - - - - Constructor - - the writer to actually write to - the error handler to report error to - - - Create a new QuietTextWriter using a writer and error handler - - - - - - Writes a character to the underlying writer - - the char to write - - - Writes a character to the underlying writer - - - - - - Writes a buffer to the underlying writer - - the buffer to write - the start index to write from - the number of characters to write - - - Writes a buffer to the underlying writer - - - - - - Writes a string to the output. - - The string data to write to the output. - - - Writes a string to the output. - - - - - - Closes the underlying output writer. - - - - Closes the underlying output writer. - - - - - - The error handler instance to pass all errors to - - - - - Flag to indicate if this writer is closed - - - - - Gets or sets the error handler that all errors are passed to. - - - The error handler that all errors are passed to. - - - - Gets or sets the error handler that all errors are passed to. - - - - - - Gets a value indicating whether this writer is closed. - - - true if this writer is closed, otherwise false. - - - - Gets a value indicating whether this writer is closed. - - - - - - Constructor - - The to actually write to. - The to report errors to. - - - Creates a new instance of the class - with the specified and . - - - - - - Writes a character to the underlying writer and counts the number of bytes written. - - the char to write - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Writes a buffer to the underlying writer and counts the number of bytes written. - - the buffer to write - the start index to write from - the number of characters to write - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Writes a string to the output and counts the number of bytes written. - - The string data to write to the output. - - - Overrides implementation of . Counts - the number of bytes written. - - - - - - Total number of bytes written. - - - - - Gets or sets the total number of bytes written. - - - The total number of bytes written. - - - - Gets or sets the total number of bytes written. - - - - - - A fixed size rolling buffer of logging events. - - - - An array backed fixed size leaky bucket. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The maximum number of logging events in the buffer. - - - Initializes a new instance of the class with - the specified maximum number of buffered logging events. - - - The argument is not a positive integer. - - - - Appends a to the buffer. - - The event to append to the buffer. - The event discarded from the buffer, if the buffer is full, otherwise null. - - - Append an event to the buffer. If the buffer still contains free space then - null is returned. If the buffer is full then an event will be dropped - to make space for the new event, the event dropped is returned. - - - - - - Get and remove the oldest event in the buffer. - - The oldest logging event in the buffer - - - Gets the oldest (first) logging event in the buffer and removes it - from the buffer. - - - - - - Pops all the logging events from the buffer into an array. - - An array of all the logging events in the buffer. - - - Get all the events in the buffer and clear the buffer. - - - - - - Clear the buffer - - - - Clear the buffer of all events. The events in the buffer are lost. - - - - - - Gets the th oldest event currently in the buffer. - - The th oldest event currently in the buffer. - - - If is outside the range 0 to the number of events - currently in the buffer, then null is returned. - - - - - - Gets the maximum size of the buffer. - - The maximum size of the buffer. - - - Gets the maximum size of the buffer - - - - - - Gets the number of logging events in the buffer. - - The number of logging events in the buffer. - - - This number is guaranteed to be in the range 0 to - (inclusive). - - - - - - An always empty . - - - - A singleton implementation of the - interface that always represents an empty collection. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Copies the elements of the to an - , starting at a particular Array index. - - The one-dimensional - that is the destination of the elements copied from - . The Array must have zero-based - indexing. - The zero-based index in array at which - copying begins. - - - As the collection is empty no values are copied into the array. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - The singleton instance of the empty collection. - - - - - Gets the singleton instance of the empty collection. - - The singleton instance of the empty collection. - - - Gets the singleton instance of the empty collection. - - - - - - Gets a value indicating if access to the is synchronized (thread-safe). - - - true if access to the is synchronized (thread-safe); otherwise, false. - - - - For the this property is always true. - - - - - - Gets the number of elements contained in the . - - - The number of elements contained in the . - - - - As the collection is empty the is always 0. - - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - As the collection is empty and thread safe and synchronized this instance is also - the object. - - - - - - An always empty . - - - - A singleton implementation of the - interface that always represents an empty collection. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Copies the elements of the to an - , starting at a particular Array index. - - The one-dimensional - that is the destination of the elements copied from - . The Array must have zero-based - indexing. - The zero-based index in array at which - copying begins. - - - As the collection is empty no values are copied into the array. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - Adds an element with the provided key and value to the - . - - The to use as the key of the element to add. - The to use as the value of the element to add. - - - As the collection is empty no new values can be added. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - Removes all elements from the . - - - - As the collection is empty no values can be removed. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - Determines whether the contains an element - with the specified key. - - The key to locate in the . - false - - - As the collection is empty the method always returns false. - - - - - - Returns an enumerator that can iterate through a collection. - - - An that can be used to - iterate through the collection. - - - - As the collection is empty a is returned. - - - - - - Removes the element with the specified key from the . - - The key of the element to remove. - - - As the collection is empty no values can be removed. A - is thrown if this method is called. - - - This dictionary is always empty and cannot be modified. - - - - The singleton instance of the empty dictionary. - - - - - Gets the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets a value indicating if access to the is synchronized (thread-safe). - - - true if access to the is synchronized (thread-safe); otherwise, false. - - - - For the this property is always true. - - - - - - Gets the number of elements contained in the - - - The number of elements contained in the . - - - - As the collection is empty the is always 0. - - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - As the collection is empty and thread safe and synchronized this instance is also - the object. - - - - - - Gets a value indicating whether the has a fixed size. - - true - - - As the collection is empty always returns true. - - - - - - Gets a value indicating whether the is read-only. - - true - - - As the collection is empty always returns true. - - - - - - Gets an containing the keys of the . - - An containing the keys of the . - - - As the collection is empty a is returned. - - - - - - Gets an containing the values of the . - - An containing the values of the . - - - As the collection is empty a is returned. - - - - - - Gets or sets the element with the specified key. - - The key of the element to get or set. - null - - - As the collection is empty no values can be looked up or stored. - If the index getter is called then null is returned. - A is thrown if the setter is called. - - - This dictionary is always empty and cannot be modified. - - - - Contain the information obtained when parsing formatting modifiers - in conversion modifiers. - - - - Holds the formatting information extracted from the format string by - the . This is used by the - objects when rendering the output. - - - Nicko Cadell - Gert Driesen - - - - Defaut Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - - - Initializes a new instance of the class - with the specified parameters. - - - - - - Gets or sets the minimum value. - - - The minimum value. - - - - Gets or sets the minimum value. - - - - - - Gets or sets the maximum value. - - - The maximum value. - - - - Gets or sets the maximum value. - - - - - - Gets or sets a flag indicating whether left align is enabled - or not. - - - A flag indicating whether left align is enabled or not. - - - - Gets or sets a flag indicating whether left align is enabled or not. - - - - - - Implementation of Properties collection for the - - - - This class implements a properties collection that is thread safe and supports both - storing properties and capturing a read only copy of the current propertied. - - - This class is optimized to the scenario where the properties are read frequently - and are modified infrequently. - - - Nicko Cadell - - - - The read only copy of the properties. - - - - This variable is declared volatile to prevent the compiler and JIT from - reordering reads and writes of this thread performed on different threads. - - - - - - Lock object used to synchronize updates within this instance - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property from the global context - - the key for the entry to remove - - - Removing an entry from the global context properties is relatively expensive compared - with reading a value. - - - - - - Clear the global context properties - - - - - Get a readonly immutable copy of the properties - - the current global context properties - - - This implementation is fast because the GlobalContextProperties class - stores a readonly copy of the properties. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Reading the value for a key is faster than setting the value. - When the value is written a new read only copy of - the properties is created. - - - - - - Manages a mapping from levels to - - - - Manages an ordered mapping from instances - to subclasses. - - - Nicko Cadell - - - - Default constructor - - - - Initialise a new instance of . - - - - - - Add a to this mapping - - the entry to add - - - If a has previously been added - for the same then that entry will be - overwritten. - - - - - - Lookup the mapping for the specified level - - the level to lookup - the for the level or null if no mapping found - - - Lookup the value for the specified level. Finds the nearest - mapping value for the level that is equal to or less than the - specified. - - - If no mapping could be found then null is returned. - - - - - - Initialize options - - - - Caches the sorted list of in an array - - - - - - Implementation of Properties collection for the - - - - Class implements a collection of properties that is specific to each thread. - The class is not synchronized as each thread has its own . - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property - - the key for the entry to remove - - - Remove the value for the specified from the context. - - - - - - Clear all the context properties - - - - Clear all the context properties - - - - - - Get the PropertiesDictionary stored in the LocalDataStoreSlot for this thread. - - create the dictionary if it does not exist, otherwise return null if is does not exist - the properties for this thread - - - The collection returned is only to be used on the calling thread. If the - caller needs to share the collection between different threads then the - caller must clone the collection before doings so. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Get or set the property value for the specified. - - - - - - Outputs log statements from within the log4net assembly. - - - - Log4net components cannot make log4net logging calls. However, it is - sometimes useful for the user to learn about what log4net is - doing. - - - All log4net internal debug calls go to the standard output stream - whereas internal error messages are sent to the standard error output - stream. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Static constructor that initializes logging by reading - settings from the application configuration file. - - - - The log4net.Internal.Debug application setting - controls internal debugging. This setting should be set - to true to enable debugging. - - - The log4net.Internal.Quiet application setting - suppresses all internal logging including error messages. - This setting should be set to true to enable message - suppression. - - - - - - Writes log4net internal debug messages to the - standard output stream. - - The message to log. - - - All internal debug messages are prepended with - the string "log4net: ". - - - - - - Writes log4net internal debug messages to the - standard output stream. - - The message to log. - An exception to log. - - - All internal debug messages are prepended with - the string "log4net: ". - - - - - - Writes log4net internal warning messages to the - standard error stream. - - The message to log. - - - All internal warning messages are prepended with - the string "log4net:WARN ". - - - - - - Writes log4net internal warning messages to the - standard error stream. - - The message to log. - An exception to log. - - - All internal warning messages are prepended with - the string "log4net:WARN ". - - - - - - Writes log4net internal error messages to the - standard error stream. - - The message to log. - - - All internal error messages are prepended with - the string "log4net:ERROR ". - - - - - - Writes log4net internal error messages to the - standard error stream. - - The message to log. - An exception to log. - - - All internal debug messages are prepended with - the string "log4net:ERROR ". - - - - - - Writes output to the standard output stream. - - The message to log. - - - Writes to both Console.Out and System.Diagnostics.Trace. - Note that the System.Diagnostics.Trace is not supported - on the Compact Framework. - - - If the AppDomain is not configured with a config file then - the call to System.Diagnostics.Trace may fail. This is only - an issue if you are programmatically creating your own AppDomains. - - - - - - Writes output to the standard error stream. - - The message to log. - - - Writes to both Console.Error and System.Diagnostics.Trace. - Note that the System.Diagnostics.Trace is not supported - on the Compact Framework. - - - If the AppDomain is not configured with a config file then - the call to System.Diagnostics.Trace may fail. This is only - an issue if you are programmatically creating your own AppDomains. - - - - - - Default debug level - - - - - In quietMode not even errors generate any output. - - - - - Gets or sets a value indicating whether log4net internal logging - is enabled or disabled. - - - true if log4net internal logging is enabled, otherwise - false. - - - - When set to true, internal debug level logging will be - displayed. - - - This value can be set by setting the application setting - log4net.Internal.Debug in the application configuration - file. - - - The default value is false, i.e. debugging is - disabled. - - - - - The following example enables internal debugging using the - application configuration file : - - - - - - - - - - - - - Gets or sets a value indicating whether log4net should generate no output - from internal logging, not even for errors. - - - true if log4net should generate no output at all from internal - logging, otherwise false. - - - - When set to true will cause internal logging at all levels to be - suppressed. This means that no warning or error reports will be logged. - This option overrides the setting and - disables all debug also. - - This value can be set by setting the application setting - log4net.Internal.Quiet in the application configuration file. - - - The default value is false, i.e. internal logging is not - disabled. - - - - The following example disables internal logging using the - application configuration file : - - - - - - - - - - - - Test if LogLog.Debug is enabled for output. - - - true if Debug is enabled - - - - Test if LogLog.Debug is enabled for output. - - - - - - Test if LogLog.Warn is enabled for output. - - - true if Warn is enabled - - - - Test if LogLog.Warn is enabled for output. - - - - - - Test if LogLog.Error is enabled for output. - - - true if Error is enabled - - - - Test if LogLog.Error is enabled for output. - - - - - - Represents a native error code and message. - - - - Represents a Win32 platform native error. - - - Nicko Cadell - Gert Driesen - - - - Create an instance of the class with the specified - error number and message. - - The number of the native error. - The message of the native error. - - - Create an instance of the class with the specified - error number and message. - - - - - - Create a new instance of the class for the last Windows error. - - - An instance of the class for the last windows error. - - - - The message for the error number is lookup up using the - native Win32 FormatMessage function. - - - - - - Create a new instance of the class. - - the error number for the native error - - An instance of the class for the specified - error number. - - - - The message for the specified error number is lookup up using the - native Win32 FormatMessage function. - - - - - - Retrieves the message corresponding with a Win32 message identifier. - - Message identifier for the requested message. - - The message corresponding with the specified message identifier. - - - - The message will be searched for in system message-table resource(s) - using the native FormatMessage function. - - - - - - Return error information string - - error information string - - - Return error information string - - - - - - Formats a message string. - - Formatting options, and how to interpret the parameter. - Location of the message definition. - Message identifier for the requested message. - Language identifier for the requested message. - If includes FORMAT_MESSAGE_ALLOCATE_BUFFER, the function allocates a buffer using the LocalAlloc function, and places the pointer to the buffer at the address specified in . - If the FORMAT_MESSAGE_ALLOCATE_BUFFER flag is not set, this parameter specifies the maximum number of TCHARs that can be stored in the output buffer. If FORMAT_MESSAGE_ALLOCATE_BUFFER is set, this parameter specifies the minimum number of TCHARs to allocate for an output buffer. - Pointer to an array of values that are used as insert values in the formatted message. - - - The function requires a message definition as input. The message definition can come from a - buffer passed into the function. It can come from a message table resource in an - already-loaded module. Or the caller can ask the function to search the system's message - table resource(s) for the message definition. The function finds the message definition - in a message table resource based on a message identifier and a language identifier. - The function copies the formatted message text to an output buffer, processing any embedded - insert sequences if requested. - - - To prevent the usage of unsafe code, this stub does not support inserting values in the formatted message. - - - - - If the function succeeds, the return value is the number of TCHARs stored in the output - buffer, excluding the terminating null character. - - - If the function fails, the return value is zero. To get extended error information, - call . - - - - - - Gets the number of the native error. - - - The number of the native error. - - - - Gets the number of the native error. - - - - - - Gets the message of the native error. - - - The message of the native error. - - - - - Gets the message of the native error. - - - - - An always empty . - - - - A singleton implementation of the over a collection - that is empty and not modifiable. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Test if the enumerator can advance, if so advance. - - false as the cannot advance. - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will always return false. - - - - - - Resets the enumerator back to the start. - - - - As the enumerator is over an empty collection does nothing. - - - - - - The singleton instance of the . - - - - - Gets the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets the current object from the enumerator. - - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current key from the enumerator. - - - Throws an exception because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current value from the enumerator. - - The current value from the enumerator. - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - Gets the current entry from the enumerator. - - - Throws an because the - never has a current entry. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - An always empty . - - - - A singleton implementation of the over a collection - that is empty and not modifiable. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to enforce the singleton pattern. - - - - - - Test if the enumerator can advance, if so advance - - false as the cannot advance. - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will always return false. - - - - - - Resets the enumerator back to the start. - - - - As the enumerator is over an empty collection does nothing. - - - - - - The singleton instance of the . - - - - - Get the singleton instance of the . - - The singleton instance of the . - - - Gets the singleton instance of the . - - - - - - Gets the current object from the enumerator. - - - Throws an because the - never has a current value. - - - - As the enumerator is over an empty collection its - value cannot be moved over a valid position, therefore - will throw an . - - - The collection is empty and - cannot be positioned over a valid location. - - - - A SecurityContext used when a SecurityContext is not required - - - - The is a no-op implementation of the - base class. It is used where a - is required but one has not been provided. - - - Nicko Cadell - - - - Singleton instance of - - - - Singleton instance of - - - - - - Private constructor - - - - Private constructor for singleton pattern. - - - - - - Impersonate this SecurityContext - - State supplied by the caller - null - - - No impersonation is done and null is always returned. - - - - - - Implements log4net's default error handling policy which consists - of emitting a message for the first error in an appender and - ignoring all subsequent errors. - - - - The error message is printed on the standard error output stream. - - - This policy aims at protecting an otherwise working application - from being flooded with error messages when logging fails. - - - Nicko Cadell - Gert Driesen - - - - Default Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - The prefix to use for each message. - - - Initializes a new instance of the class - with the specified prefix. - - - - - - Log an Error - - The error message. - The exception. - The internal error code. - - - Prints the message and the stack trace of the exception on the standard - error output stream. - - - - - - Log an Error - - The error message. - The exception. - - - Prints the message and the stack trace of the exception on the standard - error output stream. - - - - - - Log an error - - The error message. - - - Print a the error message passed as parameter on the standard - error output stream. - - - - - - Flag to indicate if it is the first error - - - - - String to prefix each message with - - - - - Is error logging enabled - - - - Is error logging enabled. Logging is only enabled for the - first error delivered to the . - - - - - - A convenience class to convert property values to specific types. - - - - Utility functions for converting types and parsing values. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Converts a string to a value. - - String to convert. - The default value. - The value of . - - - If is "true", then true is returned. - If is "false", then false is returned. - Otherwise, is returned. - - - - - - Parses a file size into a number. - - String to parse. - The default value. - The value of . - - - Parses a file size of the form: number[KB|MB|GB] into a - long value. It is scaled with the appropriate multiplier. - - - is returned when - cannot be converted to a value. - - - - - - Converts a string to an object. - - The target type to convert to. - The string to convert to an object. - - The object converted from a string or null when the - conversion failed. - - - - Converts a string to an object. Uses the converter registry to try - to convert the string value into the specified target type. - - - - - - Checks if there is an appropriate type conversion from the source type to the target type. - - The type to convert from. - The type to convert to. - true if there is a conversion from the source type to the target type. - - Checks if there is an appropriate type conversion from the source type to the target type. - - - - - - - Converts an object to the target type. - - The object to convert to the target type. - The type to convert to. - The converted object. - - - Converts an object to the target type. - - - - - - Instantiates an object given a class name. - - The fully qualified class name of the object to instantiate. - The class to which the new object should belong. - The object to return in case of non-fulfillment. - - An instance of the or - if the object could not be instantiated. - - - - Checks that the is a subclass of - . If that test fails or the object could - not be instantiated, then is returned. - - - - - - Performs variable substitution in string from the - values of keys found in . - - The string on which variable substitution is performed. - The dictionary to use to lookup variables. - The result of the substitutions. - - - The variable substitution delimiters are ${ and }. - - - For example, if props contains key=value, then the call - - - - string s = OptionConverter.SubstituteVariables("Value of key is ${key}."); - - - - will set the variable s to "Value of key is value.". - - - If no value could be found for the specified key, then substitution - defaults to an empty string. - - - For example, if system properties contains no value for the key - "nonExistentKey", then the call - - - - string s = OptionConverter.SubstituteVariables("Value of nonExistentKey is [${nonExistentKey}]"); - - - - will set s to "Value of nonExistentKey is []". - - - An Exception is thrown if contains a start - delimiter "${" which is not balanced by a stop delimiter "}". - - - - - - Converts the string representation of the name or numeric value of one or - more enumerated constants to an equivalent enumerated object. - - The type to convert to. - The enum string value. - If true, ignore case; otherwise, regard case. - An object of type whose value is represented by . - - - - Most of the work of the class - is delegated to the PatternParser class. - - - - The PatternParser processes a pattern string and - returns a chain of objects. - - - Nicko Cadell - Gert Driesen - - - - Constructor - - The pattern to parse. - - - Initializes a new instance of the class - with the specified pattern string. - - - - - - Parses the pattern into a chain of pattern converters. - - The head of a chain of pattern converters. - - - Parses the pattern into a chain of pattern converters. - - - - - - Build the unified cache of converters from the static and instance maps - - the list of all the converter names - - - Build the unified cache of converters from the static and instance maps - - - - - - Internal method to parse the specified pattern to find specified matches - - the pattern to parse - the converter names to match in the pattern - - - The matches param must be sorted such that longer strings come before shorter ones. - - - - - - Process a parsed literal - - the literal text - - - - Process a parsed converter pattern - - the name of the converter - the optional option for the converter - the formatting info for the converter - - - - Resets the internal state of the parser and adds the specified pattern converter - to the chain. - - The pattern converter to add. - - - - The first pattern converter in the chain - - - - - the last pattern converter in the chain - - - - - The pattern - - - - - Internal map of converter identifiers to converter types - - - - This map overrides the static s_globalRulesRegistry map. - - - - - - Get the converter registry used by this parser - - - The converter registry used by this parser - - - - Get the converter registry used by this parser - - - - - - Sort strings by length - - - - that orders strings by string length. - The longest strings are placed first - - - - - - This class implements a patterned string. - - - - This string has embedded patterns that are resolved and expanded - when the string is formatted. - - - This class functions similarly to the - in that it accepts a pattern and renders it to a string. Unlike the - however the PatternString - does not render the properties of a specific but - of the process in general. - - - The recognized conversion pattern names are: - - - - Conversion Pattern Name - Effect - - - appdomain - - - Used to output the friendly name of the current AppDomain. - - - - - date - - - Used to output the date of the logging event in the local time zone. - To output the date in universal time use the %utcdate pattern. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %date{HH:mm:ss,fff} or - %date{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %date{ISO8601} or %date{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - env - - - Used to output the a specific environment variable. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %env{COMPUTERNAME} would include the value - of the COMPUTERNAME environment variable. - - - The env pattern is not supported on the .NET Compact Framework. - - - - - identity - - - Used to output the user name for the currently active user - (Principal.Identity.Name). - - - - - newline - - - Outputs the platform dependent line separator character or - characters. - - - This conversion pattern name offers the same performance as using - non-portable line separator strings such as "\n", or "\r\n". - Thus, it is the preferred way of specifying a line separator. - - - - - processid - - - Used to output the system process ID for the current process. - - - - - property - - - Used to output a specific context property. The key to - lookup must be specified within braces and directly following the - pattern specifier, e.g. %property{user} would include the value - from the property that is keyed by the string 'user'. Each property value - that is to be included in the log must be specified separately. - Properties are stored in logging contexts. By default - the log4net:HostName property is set to the name of machine on - which the event was originally logged. - - - If no key is specified, e.g. %property then all the keys and their - values are printed in a comma separated list. - - - The properties of an event are combined from a number of different - contexts. These are listed below in the order in which they are searched. - - - - the thread properties - - The that are set on the current - thread. These properties are shared by all events logged on this thread. - - - - the global properties - - The that are set globally. These - properties are shared by all the threads in the AppDomain. - - - - - - - random - - - Used to output a random string of characters. The string is made up of - uppercase letters and numbers. By default the string is 4 characters long. - The length of the string can be specified within braces directly following the - pattern specifier, e.g. %random{8} would output an 8 character string. - - - - - username - - - Used to output the WindowsIdentity for the currently - active user. - - - - - utcdate - - - Used to output the date of the logging event in universal time. - The date conversion - specifier may be followed by a date format specifier enclosed - between braces. For example, %utcdate{HH:mm:ss,fff} or - %utcdate{dd MMM yyyy HH:mm:ss,fff}. If no date format specifier is - given then ISO8601 format is - assumed (). - - - The date format specifier admits the same syntax as the - time pattern string of the . - - - For better results it is recommended to use the log4net date - formatters. These can be specified using one of the strings - "ABSOLUTE", "DATE" and "ISO8601" for specifying - , - and respectively - . For example, - %utcdate{ISO8601} or %utcdate{ABSOLUTE}. - - - These dedicated date formatters perform significantly - better than . - - - - - % - - - The sequence %% outputs a single percent sign. - - - - - - Additional pattern converters may be registered with a specific - instance using or - . - - - See the for details on the - format modifiers supported by the patterns. - - - Nicko Cadell - - - - Internal map of converter identifiers to converter types. - - - - - the pattern - - - - - the head of the pattern converter chain - - - - - patterns defined on this PatternString only - - - - - Initialize the global registry - - - - - Default constructor - - - - Initialize a new instance of - - - - - - Constructs a PatternString - - The pattern to use with this PatternString - - - Initialize a new instance of with the pattern specified. - - - - - - Initialize object options - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - - - - Create the used to parse the pattern - - the pattern to parse - The - - - Returns PatternParser used to parse the conversion string. Subclasses - may override this to return a subclass of PatternParser which recognize - custom conversion pattern name. - - - - - - Produces a formatted string as specified by the conversion pattern. - - The TextWriter to write the formatted event to - - - Format the pattern to the . - - - - - - Format the pattern as a string - - the pattern formatted as a string - - - Format the pattern to a string. - - - - - - Add a converter to this PatternString - - the converter info - - - This version of the method is used by the configurator. - Programmatic users should use the alternative method. - - - - - - Add a converter to this PatternString - - the name of the conversion pattern for this converter - the type of the converter - - - Add a converter to this PatternString - - - - - - Gets or sets the pattern formatting string - - - The pattern formatting string - - - - The ConversionPattern option. This is the string which - controls formatting and consists of a mix of literal content and - conversion specifiers. - - - - - - Wrapper class used to map converter names to converter types - - - - Wrapper class used to map converter names to converter types - - - - - - default constructor - - - - - Gets or sets the name of the conversion pattern - - - The name of the conversion pattern - - - - Gets or sets the name of the conversion pattern - - - - - - Gets or sets the type of the converter - - - The type of the converter - - - - Gets or sets the type of the converter - - - - - - String keyed object map. - - - - While this collection is serializable only member - objects that are serializable will - be serialized along with this collection. - - - Nicko Cadell - Gert Driesen - - - - String keyed object map that is read only. - - - - This collection is readonly and cannot be modified. - - - While this collection is serializable only member - objects that are serializable will - be serialized along with this collection. - - - Nicko Cadell - Gert Driesen - - - - The Hashtable used to store the properties data - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Copy Constructor - - properties to copy - - - Initializes a new instance of the class. - - - - - - Deserialization constructor - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Initializes a new instance of the class - with serialized data. - - - - - - Gets the key names. - - An array of all the keys. - - - Gets the key names. - - - - - - Test if the dictionary contains a specified key - - the key to look for - true if the dictionary contains the specified key - - - Test if the dictionary contains a specified key - - - - - - Serializes this object into the provided. - - The to populate with data. - The destination for this serialization. - - - Serializes this object into the provided. - - - - - - See - - - - - See - - - - - - See - - - - - - - Remove all properties from the properties collection - - - - - See - - - - - - - See - - - - - - - See - - - - - Gets or sets the value of the property with the specified key. - - - The value of the property with the specified key. - - The key of the property to get or set. - - - The property value will only be serialized if it is serializable. - If it cannot be serialized it will be silently ignored if - a serialization operation is performed. - - - - - - The hashtable used to store the properties - - - The internal collection used to store the properties - - - - The hashtable used to store the properties - - - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - The number of properties in this collection - - - - - See - - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Constructor - - properties to copy - - - Initializes a new instance of the class. - - - - - - Initializes a new instance of the class - with serialized data. - - The that holds the serialized object data. - The that contains contextual information about the source or destination. - - - Because this class is sealed the serialization constructor is private. - - - - - - Remove the entry with the specified key from this dictionary - - the key for the entry to remove - - - Remove the entry with the specified key from this dictionary - - - - - - See - - an enumerator - - - Returns a over the contest of this collection. - - - - - - See - - the key to remove - - - Remove the entry with the specified key from this dictionary - - - - - - See - - the key to lookup in the collection - true if the collection contains the specified key - - - Test if this collection contains a specified key. - - - - - - Remove all properties from the properties collection - - - - Remove all properties from the properties collection - - - - - - See - - the key - the value to store for the key - - - Store a value for the specified . - - - Thrown if the is not a string - - - - See - - - - - - - See - - - - - Gets or sets the value of the property with the specified key. - - - The value of the property with the specified key. - - The key of the property to get or set. - - - The property value will only be serialized if it is serializable. - If it cannot be serialized it will be silently ignored if - a serialization operation is performed. - - - - - - See - - - false - - - - This collection is modifiable. This property always - returns false. - - - - - - See - - - The value for the key specified. - - - - Get or set a value for the specified . - - - Thrown if the is not a string - - - - See - - - - - See - - - - - See - - - - - See - - - - - See - - - - - A that ignores the message - - - - This writer is used in special cases where it is necessary - to protect a writer from being closed by a client. - - - Nicko Cadell - - - - Constructor - - the writer to actually write to - - - Create a new ProtectCloseTextWriter using a writer - - - - - - Attach this instance to a different underlying - - the writer to attach to - - - Attach this instance to a different underlying - - - - - - Does not close the underlying output writer. - - - - Does not close the underlying output writer. - This method does nothing. - - - - - - Defines a lock that supports single writers and multiple readers - - - - ReaderWriterLock is used to synchronize access to a resource. - At any given time, it allows either concurrent read access for - multiple threads, or write access for a single thread. In a - situation where a resource is changed infrequently, a - ReaderWriterLock provides better throughput than a simple - one-at-a-time lock, such as . - - - If a platform does not support a System.Threading.ReaderWriterLock - implementation then all readers and writers are serialized. Therefore - the caller must not rely on multiple simultaneous readers. - - - Nicko Cadell - - - - Constructor - - - - Initializes a new instance of the class. - - - - - - Acquires a reader lock - - - - blocks if a different thread has the writer - lock, or if at least one thread is waiting for the writer lock. - - - - - - Decrements the lock count - - - - decrements the lock count. When the count - reaches zero, the lock is released. - - - - - - Acquires the writer lock - - - - This method blocks if another thread has a reader lock or writer lock. - - - - - - Decrements the lock count on the writer lock - - - - ReleaseWriterLock decrements the writer lock count. - When the count reaches zero, the writer lock is released. - - - - - - A that can be and reused - - - - A that can be and reused. - This uses a single buffer for string operations. - - - Nicko Cadell - - - - Create an instance of - - the format provider to use - - - Create an instance of - - - - - - Override Dispose to prevent closing of writer - - flag - - - Override Dispose to prevent closing of writer - - - - - - Reset this string writer so that it can be reused. - - the maximum buffer capacity before it is trimmed - the default size to make the buffer - - - Reset this string writer so that it can be reused. - The internal buffers are cleared and reset. - - - - - - Utility class for system specific information. - - - - Utility class of static methods for system specific information. - - - Nicko Cadell - Gert Driesen - Alexey Solofnenko - - - - Private constructor to prevent instances. - - - - Only static methods are exposed from this type. - - - - - - Initialize default values for private static fields. - - - - Only static methods are exposed from this type. - - - - - - Gets the assembly location path for the specified assembly. - - The assembly to get the location for. - The location of the assembly. - - - This method does not guarantee to return the correct path - to the assembly. If only tries to give an indication as to - where the assembly was loaded from. - - - - - - Gets the fully qualified name of the , including - the name of the assembly from which the was - loaded. - - The to get the fully qualified name for. - The fully qualified name for the . - - - This is equivalent to the Type.AssemblyQualifiedName property, - but this method works on the .NET Compact Framework 1.0 as well as - the full .NET runtime. - - - - - - Gets the short name of the . - - The to get the name for. - The short name of the . - - - The short name of the assembly is the - without the version, culture, or public key. i.e. it is just the - assembly's file name without the extension. - - - Use this rather than Assembly.GetName().Name because that - is not available on the Compact Framework. - - - Because of a FileIOPermission security demand we cannot do - the obvious Assembly.GetName().Name. We are allowed to get - the of the assembly so we - start from there and strip out just the assembly name. - - - - - - Gets the file name portion of the , including the extension. - - The to get the file name for. - The file name of the assembly. - - - Gets the file name portion of the , including the extension. - - - - - - Loads the type specified in the type string. - - A sibling type to use to load the type. - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified, it will be loaded from the assembly - containing the specified relative type. If the type is not found in the assembly - then all the loaded assemblies will be searched for the type. - - - - - - Loads the type specified in the type string. - - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified it will be loaded from the - assembly that is directly calling this method. If the type is not found - in the assembly then all the loaded assemblies will be searched for the type. - - - - - - Loads the type specified in the type string. - - An assembly to load the type from. - The name of the type to load. - Flag set to true to throw an exception if the type cannot be loaded. - true to ignore the case of the type name; otherwise, false - The type loaded or null if it could not be loaded. - - - If the type name is fully qualified, i.e. if contains an assembly name in - the type name, the type will be loaded from the system using - . - - - If the type name is not fully qualified it will be loaded from the specified - assembly. If the type is not found in the assembly then all the loaded assemblies - will be searched for the type. - - - - - - Generate a new guid - - A new Guid - - - Generate a new guid - - - - - - Create an - - The name of the parameter that caused the exception - The value of the argument that causes this exception - The message that describes the error - the ArgumentOutOfRangeException object - - - Create a new instance of the class - with a specified error message, the parameter name, and the value - of the argument. - - - The Compact Framework does not support the 3 parameter constructor for the - type. This method provides an - implementation that works for all platforms. - - - - - - Parse a string into an value - - the string to parse - out param where the parsed value is placed - true if the string was able to be parsed into an integer - - - Attempts to parse the string into an integer. If the string cannot - be parsed then this method returns false. The method does not throw an exception. - - - - - - Parse a string into an value - - the string to parse - out param where the parsed value is placed - true if the string was able to be parsed into an integer - - - Attempts to parse the string into an integer. If the string cannot - be parsed then this method returns false. The method does not throw an exception. - - - - - - Lookup an application setting - - the application settings key to lookup - the value for the key, or null - - - Configuration APIs are not supported under the Compact Framework - - - - - - Convert a path into a fully qualified local file path. - - The path to convert. - The fully qualified path. - - - Converts the path specified to a fully - qualified path. If the path is relative it is - taken as relative from the application base - directory. - - - The path specified must be a local file path, a URI is not supported. - - - - - - Creates a new case-insensitive instance of the class with the default initial capacity. - - A new case-insensitive instance of the class with the default initial capacity - - - The new Hashtable instance uses the default load factor, the CaseInsensitiveHashCodeProvider, and the CaseInsensitiveComparer. - - - - - - Gets an empty array of types. - - - - The Type.EmptyTypes field is not available on - the .NET Compact Framework 1.0. - - - - - - Cache the host name for the current machine - - - - - Cache the application friendly name - - - - - Text to output when a null is encountered. - - - - - Text to output when an unsupported feature is requested. - - - - - Start time for the current process. - - - - - Gets the system dependent line terminator. - - - The system dependent line terminator. - - - - Gets the system dependent line terminator. - - - - - - Gets the base directory for this . - - The base directory path for the current . - - - Gets the base directory for this . - - - The value returned may be either a local file path or a URI. - - - - - - Gets the path to the configuration file for the current . - - The path to the configuration file for the current . - - - The .NET Compact Framework 1.0 does not have a concept of a configuration - file. For this runtime, we use the entry assembly location as the root for - the configuration file name. - - - The value returned may be either a local file path or a URI. - - - - - - Gets the path to the file that first executed in the current . - - The path to the entry assembly. - - - Gets the path to the file that first executed in the current . - - - - - - Gets the ID of the current thread. - - The ID of the current thread. - - - On the .NET framework, the AppDomain.GetCurrentThreadId method - is used to obtain the thread ID for the current thread. This is the - operating system ID for the thread. - - - On the .NET Compact Framework 1.0 it is not possible to get the - operating system thread ID for the current thread. The native method - GetCurrentThreadId is implemented inline in a header file - and cannot be called. - - - On the .NET Framework 2.0 the Thread.ManagedThreadId is used as this - gives a stable id unrelated to the operating system thread ID which may - change if the runtime is using fibers. - - - - - - Get the host name or machine name for the current machine - - - The hostname or machine name - - - - Get the host name or machine name for the current machine - - - The host name () or - the machine name (Environment.MachineName) for - the current machine, or if neither of these are available - then NOT AVAILABLE is returned. - - - - - - Get this application's friendly name - - - The friendly name of this application as a string - - - - If available the name of the application is retrieved from - the AppDomain using AppDomain.CurrentDomain.FriendlyName. - - - Otherwise the file name of the entry assembly is used. - - - - - - Get the start time for the current process. - - - - This is the time at which the log4net library was loaded into the - AppDomain. Due to reports of a hang in the call to System.Diagnostics.Process.StartTime - this is not the start time for the current process. - - - The log4net library should be loaded by an application early during its - startup, therefore this start time should be a good approximation for - the actual start time. - - - Note that AppDomains may be loaded and unloaded within the - same process without the process terminating, however this start time - will be set per AppDomain. - - - - - - Text to output when a null is encountered. - - - - Use this value to indicate a null has been encountered while - outputting a string representation of an item. - - - The default value is (null). This value can be overridden by specifying - a value for the log4net.NullText appSetting in the application's - .config file. - - - - - - Text to output when an unsupported feature is requested. - - - - Use this value when an unsupported feature is requested. - - - The default value is NOT AVAILABLE. This value can be overridden by specifying - a value for the log4net.NotAvailableText appSetting in the application's - .config file. - - - - - - Utility class that represents a format string. - - - - Utility class that represents a format string. - - - Nicko Cadell - - - - Initialise the - - An that supplies culture-specific formatting information. - A containing zero or more format items. - An array containing zero or more objects to format. - - - - Format the string and arguments - - the formatted string - - - - Replaces the format item in a specified with the text equivalent - of the value of a corresponding instance in a specified array. - A specified parameter supplies culture-specific formatting information. - - An that supplies culture-specific formatting information. - A containing zero or more format items. - An array containing zero or more objects to format. - - A copy of format in which the format items have been replaced by the - equivalent of the corresponding instances of in args. - - - - This method does not throw exceptions. If an exception thrown while formatting the result the - exception and arguments are returned in the result string. - - - - - - Process an error during StringFormat - - - - - Dump the contents of an array into a string builder - - - - - Dump an object to a string - - - - - Implementation of Properties collection for the - - - - Class implements a collection of properties that is specific to each thread. - The class is not synchronized as each thread has its own . - - - Nicko Cadell - - - - The thread local data slot to use to store a PropertiesDictionary. - - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Remove a property - - the key for the entry to remove - - - Remove a property - - - - - - Clear all properties - - - - Clear all properties - - - - - - Get the PropertiesDictionary for this thread. - - create the dictionary if it does not exist, otherwise return null if is does not exist - the properties for this thread - - - The collection returned is only to be used on the calling thread. If the - caller needs to share the collection between different threads then the - caller must clone the collection before doing so. - - - - - - Gets or sets the value of a property - - - The value for the property with the specified key - - - - Gets or sets the value of a property - - - - - - Implementation of Stack for the - - - - Implementation of Stack for the - - - Nicko Cadell - - - - The stack store. - - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Clears all the contextual information held in this stack. - - - - Clears all the contextual information held in this stack. - Only call this if you think that this tread is being reused after - a previous call execution which may not have completed correctly. - You do not need to use this method if you always guarantee to call - the method of the - returned from even in exceptional circumstances, - for example by using the using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) - syntax. - - - - - - Removes the top context from this stack. - - The message in the context that was removed from the top of this stack. - - - Remove the top context from this stack, and return - it to the caller. If this stack is empty then an - empty string (not ) is returned. - - - - - - Pushes a new context message into this stack. - - The new context message. - - An that can be used to clean up the context stack. - - - - Pushes a new context onto this stack. An - is returned that can be used to clean up this stack. This - can be easily combined with the using keyword to scope the - context. - - - Simple example of using the Push method with the using keyword. - - using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) - { - log.Warn("This should have an ThreadContext Stack message"); - } - - - - - - Gets the current context information for this stack. - - The current context information. - - - - Gets the current context information for this stack. - - Gets the current context information - - - Gets the current context information for this stack. - - - - - - Get a portable version of this object - - the portable instance of this object - - - Get a cross thread portable version of this object - - - - - - The number of messages in the stack - - - The current number of messages in the stack - - - - The current number of messages in the stack. That is - the number of times has been called - minus the number of times has been called. - - - - - - Gets and sets the internal stack used by this - - The internal storage stack - - - This property is provided only to support backward compatability - of the . Tytpically the internal stack should not - be modified. - - - - - - Inner class used to represent a single context frame in the stack. - - - - Inner class used to represent a single context frame in the stack. - - - - - - Constructor - - The message for this context. - The parent context in the chain. - - - Initializes a new instance of the class - with the specified message and parent context. - - - - - - Get the message. - - The message. - - - Get the message. - - - - - - Gets the full text of the context down to the root level. - - - The full text of the context down to the root level. - - - - Gets the full text of the context down to the root level. - - - - - - Struct returned from the method. - - - - This struct implements the and is designed to be used - with the pattern to remove the stack frame at the end of the scope. - - - - - - The ThreadContextStack internal stack - - - - - The depth to trim the stack to when this instance is disposed - - - - - Constructor - - The internal stack used by the ThreadContextStack. - The depth to return the stack to when this object is disposed. - - - Initializes a new instance of the class with - the specified stack and return depth. - - - - - - Returns the stack to the correct depth. - - - - Returns the stack to the correct depth. - - - - - - Implementation of Stacks collection for the - - - - Implementation of Stacks collection for the - - - Nicko Cadell - - - - Internal constructor - - - - Initializes a new instance of the class. - - - - - - Gets the named thread context stack - - - The named stack - - - - Gets the named thread context stack - - - - - - Utility class for transforming strings. - - - - Utility class for transforming strings. - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - Write a string to an - - the writer to write to - the string to write - The string to replace non XML compliant chars with - - - The test is escaped either using XML escape entities - or using CDATA sections. - - - - - - Replace invalid XML characters in text string - - the XML text input string - the string to use in place of invalid characters - A string that does not contain invalid XML characters. - - - Certain Unicode code points are not allowed in the XML InfoSet, for - details see: http://www.w3.org/TR/REC-xml/#charsets. - - - This method replaces any illegal characters in the input string - with the mask string specified. - - - - - - Count the number of times that the substring occurs in the text - - the text to search - the substring to find - the number of times the substring occurs in the text - - - The substring is assumed to be non repeating within itself. - - - - - - Impersonate a Windows Account - - - - This impersonates a Windows account. - - - How the impersonation is done depends on the value of . - This allows the context to either impersonate a set of user credentials specified - using username, domain name and password or to revert to the process credentials. - - - - - - Default constructor - - - - Default constructor - - - - - - Initialize the SecurityContext based on the options set. - - - - This is part of the delayed object - activation scheme. The method must - be called on this object after the configuration properties have - been set. Until is called this - object is in an undefined state and must not be used. - - - If any of the configuration properties are modified then - must be called again. - - - The security context will try to Logon the specified user account and - capture a primary token for impersonation. - - - The required , - or properties were not specified. - - - - Impersonate the Windows account specified by the and properties. - - caller provided state - - An instance that will revoke the impersonation of this SecurityContext - - - - Depending on the property either - impersonate a user using credentials supplied or revert - to the process credentials. - - - - - - Create a given the userName, domainName and password. - - the user name - the domain name - the password - the for the account specified - - - Uses the Windows API call LogonUser to get a principal token for the account. This - token is used to initialize the WindowsIdentity. - - - - - - Gets or sets the impersonation mode for this security context - - - The impersonation mode for this security context - - - - Impersonate either a user with user credentials or - revert this thread to the credentials of the process. - The value is one of the - enum. - - - The default value is - - - When the mode is set to - the user's credentials are established using the - , and - values. - - - When the mode is set to - no other properties need to be set. If the calling thread is - impersonating then it will be reverted back to the process credentials. - - - - - - Gets or sets the Windows username for this security context - - - The Windows username for this security context - - - - This property must be set if - is set to (the default setting). - - - - - - Gets or sets the Windows domain name for this security context - - - The Windows domain name for this security context - - - - The default value for is the local machine name - taken from the property. - - - This property must be set if - is set to (the default setting). - - - - - - Sets the password for the Windows account specified by the and properties. - - - The password for the Windows account specified by the and properties. - - - - This property must be set if - is set to (the default setting). - - - - - - The impersonation modes for the - - - - See the property for - details. - - - - - - Impersonate a user using the credentials supplied - - - - - Revert this the thread to the credentials of the process - - - - - Adds to - - - - Helper class to expose the - through the interface. - - - - - - Constructor - - the impersonation context being wrapped - - - Constructor - - - - - - Revert the impersonation - - - - Revert the impersonation - - - - - - The log4net Global Context. - - - - The GlobalContext provides a location for global debugging - information to be stored. - - - The global context has a properties map and these properties can - be included in the output of log messages. The - supports selecting and outputing these properties. - - - By default the log4net:HostName property is set to the name of - the current machine. - - - - - GlobalContext.Properties["hostname"] = Environment.MachineName; - - - - Nicko Cadell - - - - Private Constructor. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - The global context properties instance - - - - - The global properties map. - - - The global properties map. - - - - The global properties map. - - - - - - The log4net Logical Thread Context. - - - - The LogicalThreadContext provides a location for specific debugging - information to be stored. - The LogicalThreadContext properties override any or - properties with the same name. - - - The Logical Thread Context has a properties map and a stack. - The properties and stack can - be included in the output of log messages. The - supports selecting and outputting these properties. - - - The Logical Thread Context provides a diagnostic context for the current call context. - This is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The Logical Thread Context is managed on a per basis. - - - Example of using the thread context properties to store a username. - - LogicalThreadContext.Properties["user"] = userName; - log.Info("This log message has a LogicalThreadContext Property called 'user'"); - - - Example of how to push a message into the context stack - - using(LogicalThreadContext.Stacks["LDC"].Push("my context message")) - { - log.Info("This log message has a LogicalThreadContext Stack message that includes 'my context message'"); - - } // at the end of the using block the message is automatically popped - - - - Nicko Cadell - - - - Private Constructor. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - The thread context properties instance - - - - - The thread context stacks instance - - - - - The thread properties map - - - The thread properties map - - - - The LogicalThreadContext properties override any - or properties with the same name. - - - - - - The thread stacks - - - stack map - - - - The logical thread stacks. - - - - - - This class is used by client applications to request logger instances. - - - - This class has static methods that are used by a client to request - a logger instance. The method is - used to retrieve a logger. - - - See the interface for more details. - - - Simple example of logging messages - - ILog log = LogManager.GetLogger("application-log"); - - log.Info("Application Start"); - log.Debug("This is a debug message"); - - if (log.IsDebugEnabled) - { - log.Debug("This is another debug message"); - } - - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - Returns the named logger if it exists. - - Returns the named logger if it exists. - - - - If the named logger exists (in the default repository) then it - returns a reference to the logger, otherwise it returns null. - - - The fully qualified logger name to look for. - The logger found, or null if no logger could be found. - - - - Returns the named logger if it exists. - - - - If the named logger exists (in the specified repository) then it - returns a reference to the logger, otherwise it returns - null. - - - The repository to lookup in. - The fully qualified logger name to look for. - - The logger found, or null if the logger doesn't exist in the specified - repository. - - - - - Returns the named logger if it exists. - - - - If the named logger exists (in the repository for the specified assembly) then it - returns a reference to the logger, otherwise it returns - null. - - - The assembly to use to lookup the repository. - The fully qualified logger name to look for. - - The logger, or null if the logger doesn't exist in the specified - assembly's repository. - - - - Get the currently defined loggers. - - Returns all the currently defined loggers in the default repository. - - - The root logger is not included in the returned array. - - All the defined loggers. - - - - Returns all the currently defined loggers in the specified repository. - - The repository to lookup in. - - The root logger is not included in the returned array. - - All the defined loggers. - - - - Returns all the currently defined loggers in the specified assembly's repository. - - The assembly to use to lookup the repository. - - The root logger is not included in the returned array. - - All the defined loggers. - - - Get or create a logger. - - Retrieves or creates a named logger. - - - - Retrieves a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The name of the logger to retrieve. - The logger with the name specified. - - - - Retrieves or creates a named logger. - - - - Retrieve a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The repository to lookup in. - The name of the logger to retrieve. - The logger with the name specified. - - - - Retrieves or creates a named logger. - - - - Retrieve a logger named as the - parameter. If the named logger already exists, then the - existing instance will be returned. Otherwise, a new instance is - created. - - - By default, loggers do not have a set level but inherit - it from the hierarchy. This is one of the central features of - log4net. - - - The assembly to use to lookup the repository. - The name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Get the logger for the fully qualified name of the type specified. - - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Gets the logger for the fully qualified name of the type specified. - - The repository to lookup in. - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shorthand for . - - - Gets the logger for the fully qualified name of the type specified. - - The assembly to use to lookup the repository. - The full name of will be used as the name of the logger to retrieve. - The logger with the name specified. - - - - Shuts down the log4net system. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in all the - default repositories. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - Shutdown a logger repository. - - Shuts down the default repository. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - default repository. - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - - - - Shuts down the repository for the repository specified. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - The repository to shutdown. - - - - Shuts down the repository specified. - - - - Calling this method will safely close and remove all - appenders in all the loggers including root contained in the - repository. The repository is looked up using - the specified. - - - Some appenders need to be closed before the application exists. - Otherwise, pending logging events might be lost. - - - The shutdown method is careful to close nested - appenders before closing regular appenders. This is allows - configurations where a regular appender is attached to a logger - and again to a nested appender. - - - The assembly to use to lookup the repository. - - - Reset the configuration of a repository - - Resets all values contained in this repository instance to their defaults. - - - - Resets all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - - - - Resets all values contained in this repository instance to their defaults. - - - - Reset all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - The repository to reset. - - - - Resets all values contained in this repository instance to their defaults. - - - - Reset all values contained in the repository instance to their - defaults. This removes all appenders from all loggers, sets - the level of all non-root loggers to null, - sets their additivity flag to true and sets the level - of the root logger to . Moreover, - message disabling is set to its default "off" value. - - - The assembly to use to lookup the repository to reset. - - - Get the logger repository. - - Returns the default instance. - - - - Gets the for the repository specified - by the callers assembly (). - - - The instance for the default repository. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The repository to lookup in. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The assembly to use to lookup the repository. - - - Get a logger repository. - - Returns the default instance. - - - - Gets the for the repository specified - by the callers assembly (). - - - The instance for the default repository. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The repository to lookup in. - - - - Returns the default instance. - - The default instance. - - - Gets the for the repository specified - by the argument. - - - The assembly to use to lookup the repository. - - - Create a domain - - Creates a repository with the specified repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to will return - the same repository instance. - - - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - Create a logger repository. - - Creates a repository with the specified repository type. - - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - The created will be associated with the repository - specified such that a call to will return - the same repository instance. - - - - - - Creates a repository with the specified name. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name. - - - - Creates the default type of which is a - object. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique amongst repositories. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - The specified repository already exists. - - - - Creates a repository with the specified name and repository type. - - - - The name must be unique. Repositories cannot be redefined. - An will be thrown if the repository already exists. - - - The name of the repository, this must be unique to the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - The specified repository already exists. - - - - Creates a repository for the specified assembly and repository type. - - - - CreateDomain is obsolete. Use CreateRepository instead of CreateDomain. - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - - Creates a repository for the specified assembly and repository type. - - - - The created will be associated with the repository - specified such that a call to with the - same assembly specified will return the same repository instance. - - - The assembly to use to get the name of the repository. - A that implements - and has a no arg constructor. An instance of this type will be created to act - as the for the repository specified. - The created for the repository. - - - - Gets the list of currently defined repositories. - - - - Get an array of all the objects that have been created. - - - An array of all the known objects. - - - - Looks up the wrapper object for the logger specified. - - The logger to get the wrapper for. - The wrapper for the logger specified. - - - - Looks up the wrapper objects for the loggers specified. - - The loggers to get the wrappers for. - The wrapper objects for the loggers specified. - - - - Create the objects used by - this manager. - - The logger to wrap. - The wrapper for the logger specified. - - - - The wrapper map to use to hold the objects. - - - - - Implementation of Mapped Diagnostic Contexts. - - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - The MDC class is similar to the class except that it is - based on a map instead of a stack. It provides mapped - diagnostic contexts. A Mapped Diagnostic Context, or - MDC in short, is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The MDC is managed on a per thread basis. - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - Gets the context value identified by the parameter. - - The key to lookup in the MDC. - The string value held for the key, or a null reference if no corresponding value is found. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - If the parameter does not look up to a - previously defined context then null will be returned. - - - - - - Add an entry to the MDC - - The key to store the value under. - The value to store. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Puts a context value (the parameter) as identified - with the parameter into the current thread's - context map. - - - If a value is already defined for the - specified then the value will be replaced. If the - is specified as null then the key value mapping will be removed. - - - - - - Removes the key value mapping for the key specified. - - The key to remove. - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Remove the specified entry from this thread's MDC - - - - - - Clear all entries in the MDC - - - - - The MDC is deprecated and has been replaced by the . - The current MDC implementation forwards to the ThreadContext.Properties. - - - - Remove all the entries from this thread's MDC - - - - - - Implementation of Nested Diagnostic Contexts. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - A Nested Diagnostic Context, or NDC in short, is an instrument - to distinguish interleaved log output from different sources. Log - output is typically interleaved when a server handles multiple - clients near-simultaneously. - - - Interleaved log output can still be meaningful if each log entry - from different contexts had a distinctive stamp. This is where NDCs - come into play. - - - Note that NDCs are managed on a per thread basis. The NDC class - is made up of static methods that operate on the context of the - calling thread. - - - How to push a message into the context - - using(NDC.Push("my context message")) - { - ... all log calls will have 'my context message' included ... - - } // at the end of the using block the message is automatically removed - - - - Nicko Cadell - Gert Driesen - - - - Initializes a new instance of the class. - - - Uses a private access modifier to prevent instantiation of this class. - - - - - Clears all the contextual information held on the current thread. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Clears the stack of NDC data held on the current thread. - - - - - - Creates a clone of the stack of context information. - - A clone of the context info for this thread. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - The results of this method can be passed to the - method to allow child threads to inherit the context of their - parent thread. - - - - - - Inherits the contextual information from another thread. - - The context stack to inherit. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - This thread will use the context information from the stack - supplied. This can be used to initialize child threads with - the same contextual information as their parent threads. These - contexts will NOT be shared. Any further contexts that - are pushed onto the stack will not be visible to the other. - Call to obtain a stack to pass to - this method. - - - - - - Removes the top context from the stack. - - - The message in the context that was removed from the top - of the stack. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Remove the top context from the stack, and return - it to the caller. If the stack is empty then an - empty string (not null) is returned. - - - - - - Pushes a new context message. - - The new context message. - - An that can be used to clean up - the context stack. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Pushes a new context onto the context stack. An - is returned that can be used to clean up the context stack. This - can be easily combined with the using keyword to scope the - context. - - - Simple example of using the Push method with the using keyword. - - using(log4net.NDC.Push("NDC_Message")) - { - log.Warn("This should have an NDC message"); - } - - - - - - Removes the context information for this thread. It is - not required to call this method. - - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - This method is not implemented. - - - - - - Forces the stack depth to be at most . - - The maximum depth of the stack - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - Forces the stack depth to be at most . - This may truncate the head of the stack. This only affects the - stack in the current thread. Also it does not prevent it from - growing, it only sets the maximum depth at the time of the - call. This can be used to return to a known context depth. - - - - - - Gets the current context depth. - - The current context depth. - - - - The NDC is deprecated and has been replaced by the . - The current NDC implementation forwards to the ThreadContext.Stacks["NDC"]. - - - - The number of context values pushed onto the context stack. - - - Used to record the current depth of the context. This can then - be restored using the method. - - - - - - - The log4net Thread Context. - - - - The ThreadContext provides a location for thread specific debugging - information to be stored. - The ThreadContext properties override any - properties with the same name. - - - The thread context has a properties map and a stack. - The properties and stack can - be included in the output of log messages. The - supports selecting and outputting these properties. - - - The Thread Context provides a diagnostic context for the current thread. - This is an instrument for distinguishing interleaved log - output from different sources. Log output is typically interleaved - when a server handles multiple clients near-simultaneously. - - - The Thread Context is managed on a per thread basis. - - - Example of using the thread context properties to store a username. - - ThreadContext.Properties["user"] = userName; - log.Info("This log message has a ThreadContext Property called 'user'"); - - - Example of how to push a message into the context stack - - using(ThreadContext.Stacks["NDC"].Push("my context message")) - { - log.Info("This log message has a ThreadContext Stack message that includes 'my context message'"); - - } // at the end of the using block the message is automatically popped - - - - Nicko Cadell - - - - Private Constructor. - - - - Uses a private access modifier to prevent instantiation of this class. - - - - - - The thread context properties instance - - - - - The thread context stacks instance - - - - - The thread properties map - - - The thread properties map - - - - The ThreadContext properties override any - properties with the same name. - - - - - - The thread stacks - - - stack map - - - - The thread local stacks. - - - - - diff --git a/src/packages/log4net.1.2.10/log4net.1.2.10.nupkg b/src/packages/log4net.1.2.10/log4net.1.2.10.nupkg deleted file mode 100644 index 1495fd7..0000000 Binary files a/src/packages/log4net.1.2.10/log4net.1.2.10.nupkg and /dev/null differ