Class SerenityObsoleteAssetCleanerTests
Pure tests for Serenity.Editor.ObsoleteAssetCleaner.ObsoleteAssetClassifier.ClassifySweep(System.Collections.Generic.IReadOnlyList{System.String},System.Collections.Generic.IReadOnlyCollection{System.String},System.Func{System.String,System.Boolean},System.Func{System.String,System.Boolean},System.Func{System.String,Serenity.Editor.ObsoleteAssetCleaner.OrphanReconciliationEvidence}),
Serenity.Editor.ObsoleteAssetCleaner.ObsoleteAssetClassifier.ClassifyReconciliationAction(Serenity.Editor.ObsoleteAssetCleaner.OrphanReconciliationEvidence) and
Serenity.Editor.ObsoleteAssetCleaner.SerenityShippedSnapshotImportWatcher.MergeImportRecords(Serenity.Editor.ObsoleteAssetCleaner.SerenityShippedSnapshotImportWatcher.PackageImportRecord,Serenity.Editor.ObsoleteAssetCleaner.SerenityShippedSnapshotImportWatcher.PackageImportRecord), plus consistency tests asserting
the cleaner's duplicated known-non-product and tombstone-marker data stays in sync with
Serenity.Editor.PackageBootstrapper.SerenityPackageExporter.ExcludedPaths and TombstonePlanner's actual output
(the cleaner assembly cannot reference either — see the classes' remarks). No real assets are touched
by the classification tests; the tombstone-shape tests write real temp files (they need
IsTombstoneFile to read actual file content/length from disk) under the OS temp folder.
Inheritance
SerenityObsoleteAssetCleanerTests
Assembly: Tests.Editor.dll
Syntax
public class SerenityObsoleteAssetCleanerTests
Constructors
SerenityObsoleteAssetCleanerTests()
Declaration
public SerenityObsoleteAssetCleanerTests()
Methods
BuildShippedPathsByGuidCore_DuplicateGuid_ReturnsNullAndReportsEveryDuplicate()
Declaration
public void BuildShippedPathsByGuidCore_DuplicateGuid_ReturnsNullAndReportsEveryDuplicate()
BuildShippedPathsByGuidCore_UniqueGuidsWithBlankSkipped_MapsCorrectly()
Declaration
public void BuildShippedPathsByGuidCore_UniqueGuidsWithBlankSkipped_MapsCorrectly()
ClassifyReconciliationAction_TruthTable(bool, bool, bool, bool, bool, string, bool)
Declaration
public OrphanReconciliationAction ClassifyReconciliationAction_TruthTable(bool hasSnapshotPath, bool payloadTargetsSnapshotPath, bool targetOccupied, bool metaExists, bool bytesMatchAPayload, string occupantGuidScenario, bool occupantIsProvenJunk)
Parameters
| Type |
Name |
Description |
| bool |
hasSnapshotPath |
|
| bool |
payloadTargetsSnapshotPath |
|
| bool |
targetOccupied |
|
| bool |
metaExists |
|
| bool |
bytesMatchAPayload |
|
| string |
occupantGuidScenario |
|
| bool |
occupantIsProvenJunk |
|
Returns
Declaration
public void ClassifySweep_KnownNonProductExtras_AreAlwaysSweepableAnyCount()
ClassifySweep_NoImportRecord_EvidenceReconciledOrphanIsMovedNotCapped()
Declaration
public void ClassifySweep_NoImportRecord_EvidenceReconciledOrphanIsMovedNotCapped()
ClassifySweep_NoRecord_ProductOrphansAtOrUnderCap_AllSweep()
Declaration
public void ClassifySweep_NoRecord_ProductOrphansAtOrUnderCap_AllSweep()
Declaration
public void ClassifySweep_NoRecord_ProductOrphansOverCap_AreHeldBackButExtrasStillSweep()
ClassifySweep_ProductOrphanInImportRecord_AbortsEntireSweep()
Declaration
public void ClassifySweep_ProductOrphanInImportRecord_AbortsEntireSweep()
ClassifySweep_ReconciliationMove_PopulatesMovePlansAndDoesNotSweepIt()
Declaration
public void ClassifySweep_ReconciliationMove_PopulatesMovePlansAndDoesNotSweepIt()
Declaration
public void ClassifySweep_ReconciliationRestoreAndTrash_EvenWithMissingMeta_TakesPriorityOverSuspect()
ClassifySweep_ReconciliationRestoreAndTrash_SweepsHuskAndPopulatesRestoreAndTrashPlans()
Declaration
public void ClassifySweep_ReconciliationRestoreAndTrash_SweepsHuskAndPopulatesRestoreAndTrashPlans()
ClassifySweep_ReconciliationSuspect_OccupantUnknownAndNotProvenJunk_AbortsSweep()
Declaration
public void ClassifySweep_ReconciliationSuspect_OccupantUnknownAndNotProvenJunk_AbortsSweep()
Declaration
public void ClassifySweep_ReconciliationSuspect_SnapshotPathButMissingMetaAndNoPayload_AbortsSweep()
ClassifySweep_ReconciliationSuspect_UnknownGuidNoMatch_AbortsEverythingIncludingPlannedMoves()
Declaration
public void ClassifySweep_ReconciliationSuspect_UnknownGuidNoMatch_AbortsEverythingIncludingPlannedMoves()
ClassifySweep_ReconciliationTrashOccupantThenMove_PopulatesPlanAndExcludesFromSweepablePathsAndMovePlans()
Declaration
public void ClassifySweep_ReconciliationTrashOccupantThenMove_PopulatesPlanAndExcludesFromSweepablePathsAndMovePlans()
ClassifySweep_ReconciliationTrashOccupantThenRestoreAndTrash_PopulatesPlanAndExcludesFromOtherLists()
Declaration
public void ClassifySweep_ReconciliationTrashOccupantThenRestoreAndTrash_PopulatesPlanAndExcludesFromOtherLists()
ClassifySweep_ReconciliationTrash_OccupantOwnsHuskGuid_TrueDupe_SweepsAsStrandedDupe()
Declaration
public void ClassifySweep_ReconciliationTrash_OccupantOwnsHuskGuid_TrueDupe_SweepsAsStrandedDupe()
ClassifySweep_ReconciliationTrash_UnknownGuidBytesMatchPayload_SweepsAsStrandedDupe()
Declaration
public void ClassifySweep_ReconciliationTrash_UnknownGuidBytesMatchPayload_SweepsAsStrandedDupe()
ClassifySweep_TombstoneContentFiles_AreAlwaysSweepableAnyCount()
Declaration
public void ClassifySweep_TombstoneContentFiles_AreAlwaysSweepableAnyCount()
Declaration
public void ClassifySweep_UncorrelatedOrphanWithMoveEvidence_ReconciledEvenThoughRecordDoesNotListIt()
Declaration
public void ClassifySweep_UncorrelatedOrphanWithSuspectEvidence_NeverBecomesStaleSnapshotSuspect()
IsTombstoneFile_AssemblyDefinitionTombstoneContent_IsRecognized()
Declaration
public void IsTombstoneFile_AssemblyDefinitionTombstoneContent_IsRecognized()
IsTombstoneFile_AssemblyReferenceTombstoneContent_IsRecognized()
Declaration
public void IsTombstoneFile_AssemblyReferenceTombstoneContent_IsRecognized()
IsTombstoneFile_CSharpTombstoneContent_IsRecognized()
Declaration
public void IsTombstoneFile_CSharpTombstoneContent_IsRecognized()
IsTombstoneFile_OrdinaryNonEmptyOtherExtensionFile_IsNotRecognized()
Declaration
public void IsTombstoneFile_OrdinaryNonEmptyOtherExtensionFile_IsNotRecognized()
IsTombstoneFile_OtherExtensionEmptyFileInImportRecord_IsRecognized()
Declaration
public void IsTombstoneFile_OtherExtensionEmptyFileInImportRecord_IsRecognized()
IsTombstoneFile_OtherExtensionEmptyFileNotInImportRecord_IsNotRecognized()
Declaration
public void IsTombstoneFile_OtherExtensionEmptyFileNotInImportRecord_IsNotRecognized()
KnownNonProductPaths_MatchExporterExclusionsUnderOwnedRoots()
Declaration
public void KnownNonProductPaths_MatchExporterExclusionsUnderOwnedRoots()
MergeImportRecords_DifferentFingerprint_ReplacesWholesale()
Declaration
public void MergeImportRecords_DifferentFingerprint_ReplacesWholesale()
MergeImportRecords_ExistingRecordHasBlankFingerprint_TreatedAsNoExistingRecord()
Declaration
public void MergeImportRecords_ExistingRecordHasBlankFingerprint_TreatedAsNoExistingRecord()
MergeImportRecords_NoExistingRecord_ReturnsFreshRecordUnchanged()
Declaration
public void MergeImportRecords_NoExistingRecord_ReturnsFreshRecordUnchanged()
MergeImportRecords_SameFingerprintExistingNotYetConsumed_StillUnionsAndStaysUnconsumed()
Declaration
public void MergeImportRecords_SameFingerprintExistingNotYetConsumed_StillUnionsAndStaysUnconsumed()
MergeImportRecords_SameFingerprint_UnionsPathsAndResetsConsumed()
Declaration
public void MergeImportRecords_SameFingerprint_UnionsPathsAndResetsConsumed()