public static void AssertNotOwned(this CreatedMutexContainer creationContainer) { Assert.IsFalse(creationContainer.Owned, "The mutex was expected NOT to have gained ownership at creation time"); }
public static void AssertCreatedNew(this CreatedMutexContainer creationContainer) { Assert.IsTrue(creationContainer.CreatedNew, "The mutex was expected to have been newly created at the time if it's creation"); }
public static void AssertOwnershipCannotBeObtainedByDifferentThread(this CreatedMutexContainer creationContainer, string additionalMessage = null) { AssertOwnershipCannotBeObtained(creationContainer.Name, creationContainer.CreateFunc, additionalMessage); }