public static class LogAnalysis
{
// TODO: define the 'SubstringAfter()' extension method on the `string` type
static string SubstringAfter(string str) => str[(str.IndexOf(str)+1)..];
// TODO: define the 'SubstringBetween()' extension method on the `string` type
// TODO: define the 'Message()' extension method on the `string` type
// TODO: define the 'LogLevel()' extension method on the `string` type
}
Error Messages:
LogAnalysisTests.cs(9,62): error CS1061: 'string' does not contain a definition for 'SubstringAfter' and no accessible extension method 'SubstringAfter' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
LogAnalysisTests.cs(16,51): error CS1061: 'string' does not contain a definition for 'SubstringAfter' and no accessible extension method 'SubstringAfter' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
LogAnalysisTests.cs(23,54): error CS1061: 'string' does not contain a definition for 'SubstringBetween' and no accessible extension method 'SubstringBetween' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
LogAnalysisTests.cs(30,67): error CS1061: 'string' does not contain a definition for 'SubstringBetween' and no accessible extension method 'SubstringBetween' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
LogAnalysisTests.cs(38,52): error CS1061: 'string' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
LogAnalysisTests.cs(46,37): error CS1061: 'string' does not contain a definition for 'LogLevel' and no accessible extension method 'LogLevel' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)