public void FirstOrThrowWithFactory_SourceIsFirst_ExpectSourceValue() { var sourceValue = SomeTextStructType; TaggedUnion <StructType, RefType> source = sourceValue; var resultException = new SomeException(); var actual = source.FirstOrThrow(() => resultException); Assert.AreEqual(sourceValue, actual); }