Esempio n. 1
0
 public static void AssertNotOwned(this CreatedMutexContainer creationContainer)
 {
     Assert.IsFalse(creationContainer.Owned, "The mutex was expected NOT to have gained ownership at creation time");
 }
Esempio n. 2
0
 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");
 }
Esempio n. 3
0
 public static void AssertOwnershipCannotBeObtainedByDifferentThread(this CreatedMutexContainer creationContainer, string additionalMessage = null)
 {
     AssertOwnershipCannotBeObtained(creationContainer.Name, creationContainer.CreateFunc, additionalMessage);
 }