1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

Added Services and Utilities Tests to Core.Test project (#1068)

* Sorted usings

* Added CoreHelpersTests

* Added CloneObject test

* Added comments to SelfHostedAttributeTests

* Changed private variable declaration to be inline with the rest of the project

* Changed to SUT naming scheme

* Scaffolded AppleIapServiceTests

* Scaffolded I18nServiceTests.cs

* Scaffolded I18nViewLocalizerTests

* Scaffolded LocalSendStorageServiceTests

* Added tests to ReadableBytesSize_Success

* Add more CleanCertificateThumbprint tests

* Added more tests for the ExtendQuery method

* Removed AppleIapServiceTests

* Removed I18nServiceTests

* Removed I18nViewLocalizerTests

* Removed LocalSendStorageServiceTests

* Converted Batch_Success to theory with InlineData

* Simplified Batch_Success so there is less branching and more accuracy

* Switched to using size variable to format readable bytes for any number lower than 1024

* Fixed test data to work in all locales
This commit is contained in:
Justin Baur
2021-01-06 13:49:28 -05:00
committed by GitHub
parent d96da37e2a
commit aad36496e4
4 changed files with 250 additions and 17 deletions

View File

@ -349,7 +349,7 @@ namespace Bit.Core.Utilities
}
else
{
return absoluteSize.ToString("0 Bytes"); // Byte
return size.ToString("0 Bytes"); // Byte
}
// Divide by 1024 to get fractional value